Skip to content

Commit 516e831

Browse files
committed
refactor(annotation): Deprecate descriptionI18nKey in favor of new localization approach
- Add @deprecated annotation to descriptionI18nKey() in multiple annotations - This change paves the way for a new localization solution
1 parent fa58885 commit 516e831

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

src/main/java/com/github/codeboyzhou/mcp/declarative/annotation/McpJsonSchemaDefinitionProperty.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
String description() default StringHelper.EMPTY;
1616

17+
@Deprecated
1718
String descriptionI18nKey() default StringHelper.EMPTY;
1819

1920
boolean required() default false;

src/main/java/com/github/codeboyzhou/mcp/declarative/annotation/McpPrompt.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
String description() default StringHelper.EMPTY;
1919

20+
@Deprecated
2021
String descriptionI18nKey() default StringHelper.EMPTY;
2122

2223
}

src/main/java/com/github/codeboyzhou/mcp/declarative/annotation/McpPromptParam.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
String description() default StringHelper.EMPTY;
1919

20+
@Deprecated
2021
String descriptionI18nKey() default StringHelper.EMPTY;
2122

2223
boolean required() default false;

src/main/java/com/github/codeboyzhou/mcp/declarative/annotation/McpResource.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
String description() default StringHelper.EMPTY;
2121

22+
@Deprecated
2223
String descriptionI18nKey() default StringHelper.EMPTY;
2324

2425
String mimeType() default "text/plain";

src/main/java/com/github/codeboyzhou/mcp/declarative/annotation/McpTool.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
String description() default StringHelper.EMPTY;
1919

20+
@Deprecated
2021
String descriptionI18nKey() default StringHelper.EMPTY;
2122

2223
}

src/main/java/com/github/codeboyzhou/mcp/declarative/annotation/McpToolParam.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414

1515
String description() default StringHelper.EMPTY;
1616

17+
@Deprecated
1718
String descriptionI18nKey() default StringHelper.EMPTY;
1819

1920
boolean required() default false;

0 commit comments

Comments
 (0)