From 66cb37b8004322bc901c60283dada9f15aec5589 Mon Sep 17 00:00:00 2001 From: damien Date: Wed, 16 Oct 2024 22:57:03 +0200 Subject: [PATCH] #484 re-use isArrayType to be more consistent --- .../microprofile/openapi3/MicroProfileOpenApi3Module.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 8bcc8359..722a50d1 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 @@ -547,7 +547,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)); } }