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.

style: Replace ? and * with (optional) and (required) in OpenAPI reference

Sushmithamalleshee6e5e4f2a2b
diff --git a/docs/app/global.css b/docs/app/global.css
index 243f55b81..1cfeda562 100644
--- a/docs/app/global.css
+++ b/docs/app/global.css
@@ -461,6 +461,34 @@ nav a[href*="app.composio"]:focus-visible {
outline-offset: 2px;
}
+/* ==========================================================================
+ OpenAPI Reference - Field Indicators
+ ========================================================================== */
+
+/* Hide original indicators (* and ?) after property name */
+span.font-mono.text-fd-primary > span.text-red-400:last-child,
+span.font-mono.text-fd-primary > span.text-fd-muted-foreground:last-child {
+ display: none;
+}
+
+/* Add (required) after type for required fields */
+div.flex.items-center:has(> span.font-mono.text-fd-primary > span.text-red-400) > span.text-sm.font-mono::after {
+ 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)) > span.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)
========================================================================== */