stnd.buildSTANDARD MANUAL2026-07-15

5.2 Content Validation Error

Content Validation Error

Error: Invalid module manifest format or Invalid note frontmatter

The Problem

A file (either a module manifest or a markdown note) does not conform to the expected schema.

The Why

We use Zod to enforce structure. This prevents “silent failures” where a typo in a configuration key would otherwise lead to unpredictable behavior at runtime.

The Solution

  1. Read the Error: The terminal output will specify exactly which field is invalid and why (e.g., expected array, received string).
  2. Consult the Schema:
    • For modules: Check packages/core/src/loader.js for the ModuleManifestSchema.
    • For notes: Check apps/portfolio/modules/core/content.ts (or equivalent content config) for your VaultEntrySchema.
  3. Fix the File: Correct the type or structure of the field indicated in the error log.