Skip to content

Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.

docs: show only Required label, remove optional indicator

Sushmithamalleshf12346a3cdbe
diff --git a/docs/app/global.css b/docs/app/global.css
index b5165c680..62a2ab4f3 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -465,7 +465,7 @@ nav a[href*="app.composio"]:focus-visible {
OpenAPI Reference - Field Indicators
Replaces fumadocs-openapi's default ? and * indicators with explicit
- (optional) and (required) labels after the type.
+ "Required" label after the type for required fields.
Targets: span (simple types), button (expandable objects/arrays), a (links)
@@ -479,24 +479,15 @@ span.font-mono.text-fd-primary > span.text-fd-muted-foreground:last-child {
display: none;
}
-/* Add (required) after type for required fields */
+/* Add "Required" after type for required fields */
div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-red-400) > :is(span, button, a).text-sm.font-mono::after {
- content: "(required)";
+ content: "Required";
font-size: 0.75rem;
font-weight: 400;
margin-left: 0.25rem;
color: #f87171;
}
-/* Add (optional) after type for optional fields */
-div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-fd-muted-foreground:last-child):not(:has(> span.font-mono.text-fd-primary > span.text-red-400)) > :is(span, button, a).text-sm.font-mono::after {
- content: "(optional)";
- font-size: 0.75rem;
- font-weight: 400;
- margin-left: 0.25rem;
- color: var(--color-fd-muted-foreground);
-}
-
/* ==========================================================================
Table of Contents (Right Sidebar)
========================================================================== */