Skip to content

validateSourceManifest

function validateSourceManifest(manifest: unknown, options?: ManifestValidationOptions): ManifestValidationResult;

Validate a source manifest.json in full — shape, credential lint, the four type-system fields, location and its cloud-eligibility predicate, and the optional schedule, fanOut, formatting and directory declarations.

Returns every problem it finds rather than throwing on the first, so a tool can print the whole list and an author fixes the manifest once.

ParameterTypeDescription
manifestunknownThe parsed manifest object to validate.
optionsManifestValidationOptionsWhat the caller knows that the manifest cannot say — whether the source has code (which also switches on catalog-strength requiredness) and which directory providers exist. Omit while authoring.

ManifestValidationResult

{ valid, errors }valid: true with an empty errors array on success.