planValidation
planValidation(
preview,sourceDirs):GenerationIssue[]
Defined in: packages/simply-aep-core/src/generate/planValidation.ts:163
The validation issues a generation run would introduce: scans the existing directories among
sourceDirs, adds the planned Custom Metadata records (scanned back from their rendered XML, so
they’re exactly what a later validate reads), and returns only the issues that appear because of
them. A pre-existing problem elsewhere in the project isn’t one. Writes nothing to sourceDirs.
See docs/design/0045-aep-core-generation-engine.md.
Parameters
Section titled “Parameters”preview
Section titled “preview”From a generation use case’s plan.
sourceDirs
Section titled “sourceDirs”string[]
Directories to validate against — typically the project’s package directories and the output directory. Ones that don’t exist are skipped.
Returns
Section titled “Returns”The introduced issues, each tagged with its record type. Empty when the preview plans no Custom Metadata record, without scanning anything.