You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!--
Pull requests are squashed and merged using:
- their title as the commit message
- their description as the commit body
Having a good title and description is important for the users to get
readable changelog.
-->
<!-- 1. Explain WHAT the change is about -->
- Closes
[MET-843](https://linear.app/metatypedev/issue/MET-843/addiditioonalprops-in-struct-options-doesnt-work).
<!-- 3. Explain HOW users should update their code -->
#### Migration notes
---
- [x] The change comes with new or modified tests
- [ ] Hard-to-understand functions have explanatory comments
- [ ] End-user documentation is updated to reflect the change
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Introduced a configurable flag in object definitions that controls
whether extra, unspecified properties are allowed. This enhances schema
validation and data conversion by permitting flexible input when
enabled.
- Updated validation logic to conditionally bypass errors for additional
properties when permitted.
- **Tests**
- Added new test cases and a helper function to verify input
stringification and validation for both simple and nested structures.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
0 commit comments