Don't use debug assertions to validate API inputs.