fix: correct numeric types in progress notifications (#361)

* fix: correct numeric types in progress notifications

The standard specifies that these may be floating-point.

* fix: regenerate schemas
This commit is contained in:
Jack Amadeo 2025-08-07 12:59:38 -04:00 • committed by GitHub
commit 589815a40e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -69,8 +69,8 @@ impl MyServer {
let _ = client
.notify_progress(ProgressNotificationParam {
progress_token: progress_token.clone(),
progress: step,
total: Some(10),
progress: (step as f64),
total: Some(10.0),
message: Some("Some message".into()),
})
.await;