Repository navigation
5.0.0
What's Changed
- feat!: Record only the answer that a reviewer confirmed as correct, not a separate verdict. by @pocketarc in #11
Structured responses are checked against their Data class rules
sendStructuredData() now builds the response with validateAndCreate() instead of from(). from() ignored any validation rules the Data class declared, so ranges, enums and formats were never applied. They are now. This changes runtime behaviour for existing code: a response that used to be accepted can now fail validation if it breaks a declared validation rule. Review the validation rules on any Data class you pass to sendStructuredData() before upgrading. sendStructuredMessages() is unaffected.
Full Changelog: 4.0.0...5.0.0