summaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_tools')
-rw-r--r--python/fatcat_tools/references.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/fatcat_tools/references.py b/python/fatcat_tools/references.py
index 508cf19d..496a46e1 100644
--- a/python/fatcat_tools/references.py
+++ b/python/fatcat_tools/references.py
@@ -99,6 +99,7 @@ class EnrichedBiblioRef(BaseModel):
access: List[AccessOption]
@validator('release')
+ @classmethod
def check_release(cls, v):
if v is not None and not isinstance(v, ReleaseEntity):
raise ValueError("expected a ReleaseEntity")