fix: Enforce JSON property order for JsonRpcResponse

This commit is contained in:
jade
2026-07-04 01:41:49 +09:00
parent f16e1f8f4f
commit ca2b74fed1

View File

@@ -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;