function

validateAdminManifest

Check admin registrations against Ridu's resolved Go schema. Used by Ridu's build tooling and admin startup; application authors normally run ridu check instead. Set completeManifest only with the full schema from Go: runtime schemas can omit resources the current user cannot access, so absence there does not prove a typo. Throws with the affected registration or field when a selection/config is invalid.

Arguments

ArgumentTypeDescription
configResolvedAdminConfigThe config value.
manifestPick<SchemaManifest, "collections" | "globals" | "blocks"> & Partial<Pick<SchemaManifest, "plugins" | "application">>The manifest value.
options{ completeManifest?: boolean; }The options value.

Returns

The declared result.

void

Full signature

function validateAdminManifest( config: ResolvedAdminConfig, manifest: Pick< SchemaManifest, "collections" | "globals" | "blocks", > & Partial<Pick<SchemaManifest, "plugins" | "application">>, options?: { completeManifest?: boolean; }, ): void

Source packages/plugin/src/lib/admin.ts:120

Related types

  • ResolvedAdminConfig

    Static configuration owned by one mounted admin. Changes require remount/HMR.