MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / check_required_fields

Function check_required_fields

worked/example/raw/validator.py:25–29  ·  view source on GitHub ↗

Raise if any required field is missing.

(doc: dict)

Source from the content-addressed store, hash-verified

23
24
25def check_required_fields(doc: dict) -> None:
26 """Raise if any required field is missing."""
27 missing = REQUIRED_FIELDS - doc.keys()
28 if missing:
29 raise ValidationError(f"Missing required fields: {missing}")
30
31
32def check_format(doc: dict) -> None:

Callers 1

validate_documentFunction · 0.85

Calls 1

ValidationErrorClass · 0.85

Tested by

no test coverage detected