From c19718d35ccbda8aea1b65f4ea700791e6bd9089 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 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)); } }