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));