Skip to content

Commit 0ba7ad2

Browse files
committed
fix: adopt the ne openApi structure
1 parent 26609e1 commit 0ba7ad2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

crates/rmcp/tests/test_complex_schema.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,11 @@ fn test_complex_schema() {
4545
let attr = Demo::chat_tool_attr();
4646
let input_schema = attr.input_schema;
4747
let enum_number = input_schema
48-
.get("definitions")
48+
.get("components")
49+
.unwrap()
50+
.as_object()
51+
.unwrap()
52+
.get("schemas")
4953
.unwrap()
5054
.as_object()
5155
.unwrap()

0 commit comments

Comments
 (0)