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 0b9d1f52..09ae2c0a 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 @@ -546,7 +546,7 @@ private ConfigFunction createTypePropertyResolver( */ private Optional getArraySchemaTypeAnnotation(MemberScope member) { return Optional.ofNullable(member.getAnnotationConsideringFieldAndGetter(Schema.class)) - .filter(schema -> SchemaType.ARRAY.equals(schema.type())); + .filter(schema -> isArrayType(member, schema)); } }