File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 6
6
///
7
7
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8
8
/// Hash : 3d4877e69cbc9921e1b511a90cdf17d42483036b
9
- /// Generated at : 2025-02-09 16:55:01
9
+ /// Generated at : 2025-02-09 20:40:09
10
10
/// ----------------------------------------------------------------------------
11
11
///
12
12
/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -1278,5 +1278,9 @@ mod tests {
1278
1278
) ;
1279
1279
let result = detect_message_type ( & json ! ( message) ) ;
1280
1280
assert ! ( matches!( result, MessageTypes :: Error ) ) ;
1281
+
1282
+ // default
1283
+ let result = detect_message_type ( & json ! ( { } ) ) ;
1284
+ assert ! ( matches!( result, MessageTypes :: Request ) ) ;
1281
1285
}
1282
1286
}
Original file line number Diff line number Diff line change 6
6
///
7
7
/// Generated from : <https://github.com/modelcontextprotocol/specification.git>
8
8
/// Hash : 3d4877e69cbc9921e1b511a90cdf17d42483036b
9
- /// Generated at : 2025-02-09 16:55:01
9
+ /// Generated at : 2025-02-09 20:40:10
10
10
/// ----------------------------------------------------------------------------
11
11
///
12
12
/// MCP Protocol Version
Original file line number Diff line number Diff line change @@ -1267,5 +1267,9 @@ mod tests {
1267
1267
) ;
1268
1268
let result = detect_message_type ( & json ! ( message) ) ;
1269
1269
assert ! ( matches!( result, MessageTypes :: Error ) ) ;
1270
+
1271
+ // default
1272
+ let result = detect_message_type ( & json ! ( { } ) ) ;
1273
+ assert ! ( matches!( result, MessageTypes :: Request ) ) ;
1270
1274
}
1271
1275
}
You can’t perform that action at this time.
0 commit comments