Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
Mirrored from https://github.com/Camo67/composio.git
Synced Nov 22, 10:45 UTC
fix(docs): fix redundant "array of X[]" type display
For array types, aliasName should be the item type ("string") not the full array notation ("string[]"). This makes the display read "array of string" instead of "array of string[]". Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sushmithamallesh committed
Feb 4, 2026 at 13:35 UTC
3c47b938dce2da9fb782550a257c91bb339f65ae
1 file changed
+7
-1
docs/components/schema-generator.tsx
+7
-1
@@ -110,13 +110,19 @@ export function generateSchemaData(
110
const id = getSchemaId(schema);
111
if (id in refs) return id;
112
113
+ // For arrays, aliasName is the item type (used in "array of X" display)
114
+ const aliasName =
115
+ schema.type === 'array' && schema.items
116
+ ? getTypeName(schema.items)
117
+ : getTypeName(schema);
118
+
119
const base: FieldBase = {
120
description: schema.description
121
? ctx.renderMarkdown(schema.description)
122
: undefined,
123
infoTags: generateInfoTags(schema),
124
typeName: getTypeName(schema),
119
- aliasName: getTypeName(schema),
125
+ aliasName,
126
deprecated: schema.deprecated,
127
enumValues: schema.enum
128
? schema.enum.map((v: unknown) => String(v))