
This week in the deco.cx Admin: publish-time validation that catches missing required properties in your blocks before changes go live.
When editing content in the Admin, you can accidentally remove a required property from a block. A link missing its URL, a card without a title, a footer item with an empty href. Previously, there was no way to catch these issues before publishing. You would only find out when the page broke in production.
The Admin now validates blocks against their TypeScript schemas when you publish. If any block is missing required properties, a dialog appears listing the affected blocks and what's missing. Each block in the list is clickable, so you can jump directly to it in the editor.
The dialog separates issues into two levels. Errors block the publish entirely and must be fixed first. Warnings let you choose: go back and fix the problems, or click "Publish anyway" to proceed.
The feature is opt-in. To enable it, go to Management > Settings > Blocks Validator. From there you can also add ignore rules to skip validation for specific pages, saved blocks, or section types that intentionally leave required fields empty.
These changes are live now in the deco.cx Admin.
If you have feedback, reach out on Discord.
Subscribe to our newsletter and get the latest updates, tips, and exclusive content delivered straight to your inbox.

