Skip to content

Commit 55666b2

Browse files
SeanChinJunKaimichaellatman
authored andcommitted
feat: allow JSONRPCResponse to have nullable id
1 parent 0cff2ca commit 55666b2

File tree

1 file changed

+1
-1
lines changed
  • src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk

1 file changed

+1
-1
lines changed

src/commonMain/kotlin/io/modelcontextprotocol/kotlin/sdk/types.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public data class JSONRPCNotification(
239239
*/
240240
@Serializable
241241
public class JSONRPCResponse(
242-
public val id: RequestId,
242+
public val id: RequestId?,
243243
public val jsonrpc: String = JSONRPC_VERSION,
244244
public val result: RequestResult? = null,
245245
public val error: JSONRPCError? = null,

0 commit comments

Comments
 (0)