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.
Read a validation declaration into
{ source: schema }, whatever form it took.A schema class is built through
resolvewhen one is given, which is how a class whoserules()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.