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 09ae2c0a..c25035dd 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 @@ -373,9 +373,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) @@ -389,9 +386,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) @@ -405,9 +399,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)