import uuid import json from pprint import pprint from src.app import handle from common.schemas.ingestion import Event, ProductInfo with open("event.json") as file: product_info: ProductInfo = Event.model_validate(json.load(file)).product_info pprint(product_info) result = handle(product_info, str(uuid.uuid4()), str(uuid.uuid4())).model_dump() # no-qa pprint(result)