contentrain_validate
Validate content against schemas to catch required field, type, relation, secret, and i18n issues. Optionally auto-fix structural problems and missing title fields.
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) 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) 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) |