Method Validate(string?, Type)
Validates an explicit scheme name and throws when it
breaks a rule. The declaring type is carried into the message so the developer knows
exactly which class to fix.
public static void Validate(string? name, Type declaringType)