Remove stac-pydantic dependency
stac-pydantic is unmaintained and lags well behind the STAC specification. We should remove our dependency on that package.
Alternatively, stac-pydantic could be brought up-to-date with the current STAC spec and pydantic v2. This would be more work.
i do not know if this is related , but i have the feeling it might be. I get import errors with the latest library
Traceback (most recent call last):
File "/home/..../stac_fastapi/elasticsearch/app.py", line 6, in <module>
from stac_fastapi.api.models import create_get_request_model, create_post_request_model
File "/home/.../.venv/lib/python3.8/site-packages/stac_fastapi/api/models.py", line 9, in <module>
from pydantic.fields import UndefinedType
ImportError: cannot import name 'UndefinedType' from 'pydantic.fields' (/home/vagrant/Desktop/repos/data-downloaders/srs_download/.venv/lib/python3.8/site-packages/pydantic/fields.py)
Are there any constraints in package versions in order to make this work? whatever i do i get the above error
FYI "stac_pydantic==2.0.3", "stac-fastapi.types==2.4.8", "stac-fastapi.api==2.4.8", "stac-fastapi.extensions==2.4.8",
It would be great if someone could review https://github.com/stac-utils/stac-pydantic/pull/127. I am happy to make further changes if necessary.
in 3.0 we will still depends on stac-pydantic and it seems this will continue.
I'm going to closes this issue for now