From 674d3ffc7fb15c045b40c8e02c9df8f4c910b65d Mon Sep 17 00:00:00 2001 From: damien Date: Wed, 16 Oct 2024 23:01:37 +0200 Subject: [PATCH] #484 remove redundant checked condition by getArraySchemaTypeAnnotation --- .../openapi3/MicroProfileOpenApi3Module.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/jsonschema-module-microprofile-openapi-3/src/main/java/com/github/victools/jsonschema/module/microprofile/openapi3/MicroProfileOpenApi3Module.java b/jsonschema-module-microprofile-openapi-3/src/main/java/com/github/victools/jsonschema/module/microprofile/openapi3/MicroProfileOpenApi3Module.java index 722a50d1..b0a9966d 100644 --- a/jsonschema-module-microprofile-openapi-3/src/main/java/com/github/victools/jsonschema/module/microprofile/openapi3/MicroProfileOpenApi3Module.java +++ b/jsonschema-module-microprofile-openapi-3/src/main/java/com/github/victools/jsonschema/module/microprofile/openapi3/MicroProfileOpenApi3Module.java @@ -374,9 +374,6 @@ protected BigDecimal resolveInclusiveMinimum(MemberScope member) { * @return the {@code @ArraySchema(minItems)} value, otherwise {@code null} */ protected Integer resolveArrayMinItems(MemberScope member) { - if (member.isFakeContainerItemScope()) { - return null; - } return this.getArraySchemaTypeAnnotation(member) .map(Schema::minItems) .filter(minItems -> minItems != Integer.MAX_VALUE) @@ -390,9 +387,6 @@ protected Integer resolveArrayMinItems(MemberScope member) { * @return the {@code @ArraySchema(maxItems)} value, otherwise {@code null} */ protected Integer resolveArrayMaxItems(MemberScope member) { - if (member.isFakeContainerItemScope()) { - return null; - } return this.getArraySchemaTypeAnnotation(member) .map(Schema::maxItems) .filter(maxItems -> maxItems != Integer.MIN_VALUE) @@ -406,9 +400,6 @@ protected Integer resolveArrayMaxItems(MemberScope member) { * @return whether {@code @ArraySchema(uniqueItems = true)} is present */ protected Boolean resolveArrayUniqueItems(MemberScope member) { - if (member.isFakeContainerItemScope()) { - return null; - } return this.getArraySchemaTypeAnnotation(member) .map(Schema::uniqueItems) .filter(uniqueItemsFlag -> uniqueItemsFlag)