Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

test(composio): take Composio's webhook hook handler into the spec snapshot (#11531)

pseudoyue65377ac6ecd
diff --git a/server/pkg/composio/composiotest/openapi-v3.1.json b/server/pkg/composio/composiotest/openapi-v3.1.json
index 11a207b4da..8dcf39a92b 100644
--- a/server/pkg/composio/composiotest/openapi-v3.1.json
+++ b/server/pkg/composio/composiotest/openapi-v3.1.json
@@ -4635,14 +4635,28 @@
]
},
"handler": {
- "type": "object",
- "properties": {
- "type": {"type":"string","enum":["condition_check"]},
- "condition": {"type":"string","minLength":1,"maxLength":2000},
- "action": {"type":"string","enum":["block"]}
- },
- "required": ["type","condition","action"],
- "additionalProperties": false
+ "oneOf": [
+ {
+ "type": "object",
+ "properties": {
+ "type": {"type":"string","enum":["condition_check"]},
+ "condition": {"type":"string","minLength":1,"maxLength":2000},
+ "action": {"type":"string","enum":["block"]}
+ },
+ "required": ["type","condition","action"],
+ "additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {"type":"string","enum":["webhook"]},
+ "timeout_ms": {"type":"integer","minimum":100,"maximum":5000},
+ "fallback_action": {"type":"string","enum":["block","continue"]}
+ },
+ "required": ["type","fallback_action"],
+ "additionalProperties": false
+ }
+ ]
}
},
"required": ["type","id","applies_to","handler"],
@@ -4691,6 +4705,16 @@
},
"required": ["type","action"],
"additionalProperties": false
+ },
+ {
+ "type": "object",
+ "properties": {
+ "type": {"type":"string","enum":["webhook"]},
+ "timeout_ms": {"type":"integer","minimum":100,"maximum":5000},
+ "fallback_action": {"type":"string","enum":["block","continue"]}
+ },
+ "required": ["type","fallback_action"],
+ "additionalProperties": false
}
]
}