Skip to content

Commit afa0090

Browse files
authored
fix: JSONRPCResponse JavaDoc (#657)
1 parent ed85f7e commit afa0090

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mcp-core/src/main/java/io/modelcontextprotocol/spec/McpSchema.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,12 +277,12 @@ public record JSONRPCNotification( // @formatter:off
277277
}
278278

279279
/**
280-
* A successful (non-error) response to a request.
280+
* A response to a request (successful, or error).
281281
*
282282
* @param jsonrpc The JSON-RPC version (must be "2.0")
283283
* @param id The request identifier that this response corresponds to
284-
* @param result The result of the successful request
285-
* @param error Error information if the request failed
284+
* @param result The result of the successful request; null if error
285+
* @param error Error information if the request failed; null if has result
286286
*/
287287
@JsonInclude(JsonInclude.Include.NON_ABSENT)
288288
@JsonIgnoreProperties(ignoreUnknown = true)

0 commit comments

Comments
 (0)