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)