Skip to content

Conversation

tzolov
Copy link
Collaborator

@tzolov tzolov commented Aug 28, 2025

BREAKING CHANGE: The clientId parameter is now required for @McpSampling annotation

  • Remove default empty string from McpSampling.clientId()
  • Add validation in AsyncSamplingSpecification and SyncSamplingSpecification constructors
  • Update documentation and examples to show required clientId parameter
  • Update all test cases to include clientId parameter
  • Add null and empty string validation for clientId in specification classes

BREAKING CHANGE: The clientId parameter is now required for @McpSampling annotation

- Remove default empty string from McpSampling.clientId()
- Add validation in AsyncSamplingSpecification and SyncSamplingSpecification constructors
- Update documentation and examples to show required clientId parameter
- Update all test cases to include clientId parameter
- Add null and empty string validation for clientId in specification classes

Signed-off-by: Christian Tzolov <[email protected]>
@tzolov tzolov added this to the 0.3.0 milestone Aug 28, 2025
@tzolov tzolov merged commit 34b9c7e into spring-ai-community:main Aug 28, 2025
1 check passed
scottslewis pushed a commit to scottslewis/mcp-annotations that referenced this pull request Aug 28, 2025
…community#38)

BREAKING CHANGE: The clientId parameter is now required for @McpSampling annotation

- Remove default empty string from McpSampling.clientId()
- Add validation in AsyncSamplingSpecification and SyncSamplingSpecification constructors
- Update documentation and examples to show required clientId parameter
- Update all test cases to include clientId parameter
- Add null and empty string validation for clientId in specification classes

Signed-off-by: Christian Tzolov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant