feat: add optional lastModified field to Annotations record with backward compatibility (#568)
Resolves #565 Signed-off-by: Christian Tzolov <christian.tzolov@broadcom.com>
This commit is contained in:
parent
d327fff6f7
commit
a90b922be9
1 changed files with 7 additions and 1 deletions
|
|
@ -653,7 +653,13 @@ public final class McpSchema {
|
|||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public record Annotations( // @formatter:off
|
||||
@JsonProperty("audience") List<Role> audience,
|
||||
@JsonProperty("priority") Double priority) { // @formatter:on
|
||||
@JsonProperty("priority") Double priority,
|
||||
@JsonProperty("lastModified") String lastModified
|
||||
) { // @formatter:on
|
||||
|
||||
public Annotations(List<Role> audience, Double priority) {
|
||||
this(audience, priority, null);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue