diff --git a/alkemio_virtual_contributor_engine/events/response.py b/alkemio_virtual_contributor_engine/events/response.py index 324fb26..4b87768 100644 --- a/alkemio_virtual_contributor_engine/events/response.py +++ b/alkemio_virtual_contributor_engine/events/response.py @@ -17,9 +17,7 @@ def __init__(self, source: Dict[str, str]): self.score = source.get("score") self.uri = source.get("uri") - if all( - [self.document_id, self.source, self.title, self.type, self.score, self.uri] - ): + if not all([self.uri]): raise ValueError("Missing required fields in source dictionary") def to_dict(self):