From 9430856ddcaa22507a2319608fcf4ec00f5df86c Mon Sep 17 00:00:00 2001 From: lnash94 Date: Thu, 2 May 2024 14:07:11 +0530 Subject: [PATCH] Fix tag and operation filter issue in bal build tool --- .../ballerina/openapi/bal/tool/OpenAPICodeGeneratorTool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openapi-bal-task-plugin/src/main/java/io/ballerina/openapi/bal/tool/OpenAPICodeGeneratorTool.java b/openapi-bal-task-plugin/src/main/java/io/ballerina/openapi/bal/tool/OpenAPICodeGeneratorTool.java index d977e8f23..9e10a7ab1 100644 --- a/openapi-bal-task-plugin/src/main/java/io/ballerina/openapi/bal/tool/OpenAPICodeGeneratorTool.java +++ b/openapi-bal-task-plugin/src/main/java/io/ballerina/openapi/bal/tool/OpenAPICodeGeneratorTool.java @@ -270,10 +270,10 @@ public static ImmutablePair extractOptionDe String fieldName = field.getKey(); switch (fieldName) { case TAGS: - filter.setTags(getArrayItems(field.getValue())); + filter.setTags(getArrayItems(field.getValue().value())); break; case OPERATIONS: - filter.setOperations(getArrayItems(field.getValue())); + filter.setOperations(getArrayItems(field.getValue().value())); break; case NULLABLE: serviceMetaDataBuilder.withNullable(value.contains(TRUE));