Skip to content

Commit

Permalink
Remove finnicky schema validation (#49) (#50)
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 3291dd9 commit 940bd8b
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 940bd8b

Please sign in to comment.