Skip to content

Commit

Permalink
not sure what changed, but schema shows a pynorms error in gh runner
Browse files Browse the repository at this point in the history
  • Loading branch information
aerorahul committed Feb 28, 2024
1 parent 651206f commit 05ea7bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wxflow/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 05ea7bf

Please sign in to comment.