fix: when using JsonTypeInfo.DEDUCTION don’t add include (#587)
From the JSonTypeInfo Javadocs: > If deduction is being used annotation properties visible, property and include are ignored. This is causing issues with serialization downstream.
This commit is contained in:
parent
c1cde20002
commit
12292ab598
1 changed files with 1 additions and 1 deletions
|
|
@ -1064,7 +1064,7 @@ public final class McpSchema {
|
|||
/**
|
||||
* The contents of a specific resource or sub-resource.
|
||||
*/
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION, include = As.PROPERTY)
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
|
||||
@JsonSubTypes({ @JsonSubTypes.Type(value = TextResourceContents.class, name = "text"),
|
||||
@JsonSubTypes.Type(value = BlobResourceContents.class, name = "blob") })
|
||||
public sealed interface ResourceContents extends Meta permits TextResourceContents, BlobResourceContents {
|
||||
|
|
|
|||
Loading…
Reference in a new issue