stapi-spec / stapi-fastapi

Spatio Temporal Asset Tasking with FastAPI
MIT License
12 stars 4 forks source link

copy product with pydantic model_copy instead of copy.deepcopy #109

Closed philvarner closed 1 day ago

philvarner commented 1 day ago

Related Issue(s):

Proposed Changes:

copy product with pydantic model_copy instead of copy.deepcopy

I hit an error with this after some changes that I think monkeypatched a class. I don't know if the error is related to this or not, but it would be better to do this copy the Pydantic way rathe than the generic way.

PR Checklist: