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