fix remove name when using deduction (#600)
This pull-request removes the name member from the @JsonSubTypes.Type annotations when using JsonTypeInfo.Id.DEDUCTION. With DEDUCTION, Jackson ignores the name entirely because it's inferring the type from the structure.
This commit is contained in:
parent
83fc4f79de
commit
94a8b53d88
1 changed files with 2 additions and 2 deletions
|
|
@ -1064,8 +1064,8 @@ public final class McpSchema {
|
|||
* The contents of a specific resource or sub-resource.
|
||||
*/
|
||||
@JsonTypeInfo(use = JsonTypeInfo.Id.DEDUCTION)
|
||||
@JsonSubTypes({ @JsonSubTypes.Type(value = TextResourceContents.class, name = "text"),
|
||||
@JsonSubTypes.Type(value = BlobResourceContents.class, name = "blob") })
|
||||
@JsonSubTypes({ @JsonSubTypes.Type(value = TextResourceContents.class),
|
||||
@JsonSubTypes.Type(value = BlobResourceContents.class) })
|
||||
public sealed interface ResourceContents extends Meta permits TextResourceContents, BlobResourceContents {
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue