Skip to content

Commit 08c7184

Browse files
committed
Merge branch 'main' into json-schema-required-fields
Signed-off-by: Dariusz Jędrzejczyk <2554306+chemicL@users.noreply.github.com>
2 parents cd4d1a5 + 4c85963 commit 08c7184

1 file changed

Lines changed: 16 additions & 15 deletions

File tree

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

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,10 +1969,11 @@ public CreateMessageRequest(List<SamplingMessage> messages, ModelPreferences mod
19691969

19701970
public enum ContextInclusionStrategy {
19711971

1972-
@JsonProperty("none")
1973-
NONE, @JsonProperty("thisServer")
1974-
THIS_SERVER, @JsonProperty("allServers")
1975-
ALL_SERVERS
1972+
// @formatter:off
1973+
@JsonProperty("none") NONE,
1974+
@JsonProperty("thisServer") THIS_SERVER,
1975+
@JsonProperty("allServers") ALL_SERVERS
1976+
} // @formatter:on
19761977

19771978
}
19781979

@@ -2107,11 +2108,12 @@ public record CreateMessageResult( // @formatter:off
21072108

21082109
public enum StopReason {
21092110

2110-
@JsonProperty("endTurn")
2111-
END_TURN("endTurn"), @JsonProperty("stopSequence")
2112-
STOP_SEQUENCE("stopSequence"), @JsonProperty("maxTokens")
2113-
MAX_TOKENS("maxTokens"), @JsonProperty("unknown")
2114-
UNKNOWN("unknown");
2111+
// @formatter:off
2112+
@JsonProperty("endTurn") END_TURN("endTurn"),
2113+
@JsonProperty("stopSequence") STOP_SEQUENCE("stopSequence"),
2114+
@JsonProperty("maxTokens") MAX_TOKENS("maxTokens"),
2115+
@JsonProperty("unknown") UNKNOWN("unknown");
2116+
// @formatter:on
21152117

21162118
private final String value;
21172119

@@ -2331,12 +2333,11 @@ public record ElicitResult( // @formatter:off
23312333

23322334
public enum Action {
23332335

2334-
@JsonProperty("accept")
2335-
ACCEPT, @JsonProperty("decline")
2336-
DECLINE, @JsonProperty("cancel")
2337-
CANCEL
2338-
2339-
}
2336+
// @formatter:off
2337+
@JsonProperty("accept") ACCEPT,
2338+
@JsonProperty("decline") DECLINE,
2339+
@JsonProperty("cancel") CANCEL
2340+
} // @formatter:on
23402341

23412342
// backwards compatibility constructor
23422343
public ElicitResult(Action action, Map<String, Object> content) {

0 commit comments

Comments
 (0)