Skip to main content

validate

Function validate 

Source
pub fn validate() -> Result<(), RegistryError>
Expand description

Validates the registry against its contract:

  • unique ids and unique (face, method, path) routes,
  • non-empty justifications,
  • each handler appears only under the face that owns it.

Returns the first RegistryError found, or Ok(()). The drift test calls this and also checks the builder wiring is consistent with the result.