fix: Enforce JSON property order for JsonRpcResponse
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
package io.shinhanlife.axhub.biz.mcp.adapter.dto;
|
package io.shinhanlife.axhub.biz.mcp.adapter.dto;
|
||||||
|
|
||||||
|
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
|
||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
// 2. 응답 DTO
|
// 2. 응답 DTO
|
||||||
@Getter
|
@Getter
|
||||||
@Setter
|
@Setter
|
||||||
|
@JsonPropertyOrder({"jsonrpc", "result", "error", "id"})
|
||||||
public class JsonRpcResponse {
|
public class JsonRpcResponse {
|
||||||
public String jsonrpc = "2.0";
|
public String jsonrpc = "2.0";
|
||||||
public Object result;
|
public Object result;
|
||||||
|
|||||||
Reference in New Issue
Block a user