Make LoggingMessageNotificationParams.Data required per MCP spec (#1353)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
This commit is contained in:
parent
9b5d0fe80a
commit
571e4dc127
1 changed files with 8 additions and 9 deletions
|
|
@ -45,8 +45,9 @@ public sealed class LoggingMessageNotificationParams : NotificationParams
|
|||
public string? Logger { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the data to be logged, such as a string message.
|
||||
/// Gets or sets the data to be logged, such as a string message or an object.
|
||||
/// Any JSON serializable type is allowed here.
|
||||
/// </summary>
|
||||
[JsonPropertyName("data")]
|
||||
public JsonElement? Data { get; set; }
|
||||
public required JsonElement Data { get; set; }
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue