SimpleKGPipeline fails with pydantic validation error

I'musing neo4j-graphrag 1.16.1, pydantic 2.9.2. When passing a schema to SimpleKGPipeline, I get the following error: 'TypeError: default_additional_item..wrapper() missing 1 required positional argument: 'validated_data''

Can you provide some more information? What schema are you passing? Can you share your code?

I'm simply trying to run one of the basic examples, like in neo4j-graphrag-python/examples/build_graph/simple_kg_builder_from_pdf.py.

In it, it creates a schema using just lists:

NODE_TYPES=["Person", "Organization"]

RELATIONSHIP_TYPES=["SITUATED_AT", "INTERACTS", "LED_BY"]

PATTERNS=[("Person", "SITUATED_AT", "Location"), ....]

Then pass this to SimpleKGPipeline(

...., schema={"node_types": NODE_TYPES, "relationship_type": RELATIONSHIP_TYPES, "patterns": PATTERN, ...}

And I get that error.

I'm wondering if there is a version compatibility issue?