Skip to content

Commit

Permalink
Remove finnicky schema validation (#49)
Browse files Browse the repository at this point in the history
* Remove schema validation

* Simplify code

* Fix linting issue
  • Loading branch information
DiljotSG authored Nov 2, 2023
1 parent aefd0b1 commit de1e6d6
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1,643 deletions.
11 changes: 0 additions & 11 deletions src/common.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
from datetime import date

import jsonschema


def is_valid_schema(obj, schema: dict) -> bool:
result = True
try:
jsonschema.validate(instance=obj, schema=schema)
except jsonschema.ValidationError:
result = False
return result


def is_valid_date(given_date: str):
result = True
Expand Down
Loading

0 comments on commit de1e6d6

Please sign in to comment.