Server side attribute validation fails silently #7653
Labels
[Feature] Parsing
Related to efforts to improving the parsing of a string of data and converting it into a different f
[Package] Server Side Render
/packages/server-side-render
[Status] Not Implemented
Issue/PR we will (likely) not implement.
Describe the bug
I've noticed that the method prepare_attributes_for_render doesn't scream when an attribute doesn't have an expected type.
For example, the RichText component saves the value as an array of strings, even if I've defined the attribute as string. In this case, the value of the attribute in the
render_callback
comes empty without noticing a problem in the process.Expected behavior
I think that by triggering a Notice would be helpful for developers to catch early architectural issues.
Additional context
The text was updated successfully, but these errors were encountered: