This is due to `str_to_lower`. https://stackoverflow.com/questions/79351811/pydantic-restrict-string-to-literal-values-and-convert-to-lower-case We should remove this parameter and find a better way of validating any case.