feat!: align metadata models with draft schema (#993)
This commit is contained in:
parent
92581bee53
commit
839922d8fd
1 changed files with 2539 additions and 1059 deletions
|
|
@ -125,7 +125,7 @@ async fn test_elicitation_result_serialization() {
|
|||
assert_eq!(deserialized.meta, None);
|
||||
|
||||
// Test protocol-level metadata round-trips as _meta.
|
||||
let meta_result = ElicitResult::new(ElicitationAction::Accept).with_meta(Meta(object!({
|
||||
let meta_result = ElicitResult::new(ElicitationAction::Accept).with_meta(MetaObject(object!({
|
||||
"traceId": "elicitation-123"
|
||||
})));
|
||||
|
||||
|
|
@ -139,7 +139,7 @@ async fn test_elicitation_result_serialization() {
|
|||
let deserialized: ElicitResult = serde_json::from_value(expected).unwrap();
|
||||
assert_eq!(
|
||||
deserialized.meta,
|
||||
Some(Meta(object!({ "traceId": "elicitation-123" })))
|
||||
Some(MetaObject(object!({ "traceId": "elicitation-123" })))
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue