Skip to content

Commit 764d773

Browse files
SeanChinJunKaidevcrocod
authored andcommitted
feat: allow JSONRPCResponse to have nullable id
1 parent 675cc73 commit 764d773

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
@@ -240,7 +240,7 @@ public data class JSONRPCNotification(
240240
*/
241241
@Serializable
242242
public class JSONRPCResponse(
243-
public val id: RequestId,
243+
public val id: RequestId?,
244244
public val jsonrpc: String = JSONRPC_VERSION,
245245
public val result: RequestResult? = null,
246246
public val error: JSONRPCError? = null,

0 commit comments

Comments
 (0)