You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have another use case for which I'd like to create SQLModel/Pydantic models from JSON schema definitions.
We are doing that here in pipestat, but the code seems to be a little convoluted and integrated in with pipestat-specific things.
I'm wondering if we can extract this code into a modular function, so that I can do something like this:
# read json schema in from file into a dict
import json
my_dict = json.loads("path/to/schema.json")
# get model from this schema
MyModel = create_sqlmodel_from_dict(my_dict)
This is what I need and I feel like we already have built this functionality. What would it take to extract it so I can reuse it?
The text was updated successfully, but these errors were encountered:
I have another use case for which I'd like to create SQLModel/Pydantic models from JSON schema definitions.
We are doing that here in pipestat, but the code seems to be a little convoluted and integrated in with pipestat-specific things.
I'm wondering if we can extract this code into a modular function, so that I can do something like this:
This is what I need and I feel like we already have built this functionality. What would it take to extract it so I can reuse it?
The text was updated successfully, but these errors were encountered: