Skip to content

Conversation

hashemix
Copy link
Member

@hashemix hashemix commented Oct 3, 2025

📌 Summary

This pull request introduces enhancements to the schema by adding more restrictions and validation for constant values in structs and enums, ensuring stricter data integrity during serialization and deserialization.

Additionally, new unit tests have been implemented to verify the correctness of these changes, including serialization/deserialization cycles, custom deserializer validation, and edge cases.

🔍 Related Issues

✨ Changes Made

  • Added custom deserialization logic to enforce constant values for fields like method in structs such as CallToolRequest, CancelledNotification, etc.
  • New unit tests to verify the correctness of these changes, including serialization/deserialization cycles, custom deserializer validation

🛠️ Testing Steps

run:

./scripts/run_test.sh

@hashemix hashemix changed the title feat: add Const Value Restrictions, Validation, and Tests eat: added method value validation and more strickt restriction on const values Oct 3, 2025
@hashemix hashemix changed the title eat: added method value validation and more strickt restriction on const values feat: added method value validation and more strickt restriction on const values Oct 3, 2025
@hashemix hashemix merged commit 5b81b64 into main Oct 3, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Should we enforce the validation for method field in xxxRequest?
1 participant