Stone.js API
    Preparing search index...
    • Read a validation declaration into { source: schema }, whatever form it took.

      A schema class is built through resolve when one is given, which is how a class whose rules() needs i18n or any other service still contributes its schema. Failing that it is constructed with no dependencies, and if even that throws it is skipped rather than guessed at, because a wrong contract is worse than a missing one.

      Parameters

      • declared: unknown

        What the route declared under validation.

      • registries: DerivationRegistries = {}

        The registry to resolve a name against, and how to build a class.

      Returns Record<string, unknown>

      The schemas keyed by source, or undefined when nothing could be read.