I'm wondering if there's a way to validate formats when using check_schema. It seems to allow invalid format names. The below example passes validation, even though datetime should be date-time. I noticed the concrete implementation of check_schema has a format_checker argument (even though the FormatChecker protocol does not have this argument). Setting the format checker doesn't validate format names either. Is there anyway to get check_schema to fail for invalid formats?
I'm wondering if there's a way to validate formats when using
check_schema
. It seems to allow invalid format names. The below example passes validation, even thoughdatetime
should bedate-time
. I noticed the concrete implementation ofcheck_schema
has aformat_checker
argument (even though theFormatChecker
protocol does not have this argument). Setting the format checker doesn't validate format names either. Is there anyway to getcheck_schema
to fail for invalid formats?