diff --git a/src/wxflow/schema.py b/src/wxflow/schema.py index fbb1263..82c13ba 100644 --- a/src/wxflow/schema.py +++ b/src/wxflow/schema.py @@ -606,7 +606,7 @@ def _to_schema(s, ignore_extra_keys): return_schema["allOf"] = all_of_values elif flavor == COMPARABLE: return_schema["const"] = _to_json_type(s) - elif flavor == VALIDATOR and type(s) == Regex: + elif flavor == VALIDATOR and type(s) is Regex: return_schema["type"] = "string" return_schema["pattern"] = s.pattern_str else: