Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

Commit 4bf5e75

Browse files
Merge pull request #1764 from janhq/chore/lint-api-reference
docs: fix tools should be array not object
2 parents 0528553 + ade0aa0 commit 4bf5e75

File tree

1 file changed

+26
-13
lines changed

1 file changed

+26
-13
lines changed

docs/static/openapi/cortex.json

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,8 +2224,18 @@
22242224
"default": [],
22252225
"type": "array",
22262226
"items": {
2227-
"type": "object"
2228-
}
2227+
"type": "array",
2228+
"properties": {
2229+
"type": {
2230+
"type": "string",
2231+
"enum": ["function"]
2232+
},
2233+
"function": {
2234+
"$ref": "#/components/schemas/Function"
2235+
}
2236+
},
2237+
"required": ["type", "function"]
2238+
},
22292239
},
22302240
"metadata": {
22312241
"type": "object",
@@ -2286,7 +2296,7 @@
22862296
"nullable": true
22872297
},
22882298
"tools": {
2289-
"type": "object"
2299+
"type": "array"
22902300
},
22912301
"metadata": {
22922302
"type": "object",
@@ -2869,17 +2879,20 @@
28692879
}
28702880
},
28712881
"tools": {
2872-
"type": "object",
2873-
"properties": {
2874-
"type": {
2875-
"type": "string",
2876-
"enum": ["function"]
2882+
"type": "array",
2883+
"items": {
2884+
"type": "object",
2885+
"properties": {
2886+
"type": {
2887+
"type": "string",
2888+
"enum": ["function"]
2889+
},
2890+
"function": {
2891+
"$ref": "#/components/schemas/Function"
2892+
}
28772893
},
2878-
"function": {
2879-
"$ref": "#/components/schemas/Function"
2880-
}
2881-
},
2882-
"required": ["type", "function"]
2894+
"required": ["type", "function"]
2895+
}
28832896
},
28842897
"tool_choice": {
28852898
"anyOf": [

0 commit comments

Comments
 (0)