contentrain_validate
Validate project content against model schemas to detect required field violations, type mismatches, broken relations, secret leaks, and i18n parity issues. Optionally auto-fix structural problems.
Instructions
Validate project content against model schemas. Detects required field violations, type mismatches, broken relations, secret leaks, i18n parity issues, and more. If fix:true, auto-fixes structural issues (canonical sort, orphan meta, missing locale files, stray non-i18n meta layout, scheduling keys an older content_save leaked into document frontmatter) and backfills a missing model title_field — do NOT manually edit .contentrain/ files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fix | No | Auto-fix structural issues (canonical sort, orphan meta, missing locale files, stray non-i18n meta layout, publish_at/expire_at copies an older content_save left in document frontmatter when meta holds the same key) and backfill a missing model title_field. Each backfilled title_field is reported as a notice naming the rule that chose it. Default: false | |
| model | No | Model ID to validate (omit for all models) |