I have data coming into my FastAPI that can take any shape/form and as such I need an empty Pydantic model. I tried creating a dynamic model like this:
DynamicModel = create_model('RandomData', random_data=(dict, ...))
However it requires the model to follow this structure:
{"random_data": { } }
What I would like is for the model to accept an empty json dictionary like this: { }
What am I missing?