Skip to content

Commit 369a54c

Browse files
feat: allow JSONRPCResponse to have nullable id
1 parent 63a50c1 commit 369a54c

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
@@ -236,7 +236,7 @@ public data class JSONRPCNotification(
236236
*/
237237
@Serializable
238238
public class JSONRPCResponse(
239-
public val id: RequestId,
239+
public val id: RequestId?,
240240
public val jsonrpc: String = JSONRPC_VERSION,
241241
public val result: RequestResult? = null,
242242
public val error: JSONRPCError? = null,

0 commit comments

Comments
 (0)