function

validateAdminConfig

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
configAdminConfigThe config value.
manifestPick<SchemaManifest, "collections" | "globals" | "blocks"> & Partial<Pick<SchemaManifest, "plugins">>The manifest value.
options{ completeManifest?: boolean; }The options value.

Returns

The declared result.

void

Full signature

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

Source packages/plugin/src/admin.ts:90

Related types

  • AdminConfig

    Settings exported from admin/src/admin.config.ts to customize one application’s admin.