diff --git a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java index f7d75b481405..423105fc1b9e 100644 --- a/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java +++ b/misc/docerina/src/main/java/org/ballerinalang/docgen/generator/model/Type.java @@ -212,7 +212,7 @@ public static Type fromNode(Node node, SemanticModel semanticModel, Module modul type.category = "builtin"; } else if (node instanceof ArrayTypeDescriptorNode arrayTypeDescriptorNode) { type.isArrayType = true; - type.arrayDimensions = 1; + type.arrayDimensions = arrayTypeDescriptorNode.dimensions().size(); type.elementType = fromNode(arrayTypeDescriptorNode.memberTypeDesc(), semanticModel, module); } else if (node instanceof OptionalTypeDescriptorNode optionalTypeDescriptorNode) { type = fromNode(optionalTypeDescriptorNode.typeDescriptor(), semanticModel, module);