Skip to content

Commit f6fc5be

Browse files
committed
fix: upgrade pystac version and implement override for a lower stac spec version in configuration
1 parent e57e66b commit f6fc5be

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

stac_api/infrastructure/config.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ class vedaSTACSettings(BaseSettings):
5858
False,
5959
description="Boolean to disable default API gateway endpoints for stac, raster, and ingest APIs. Defaults to false.",
6060
)
61+
pystac_stac_version_override: Optional[str] = Field(
62+
"1.0.0",
63+
description="Stac version override for Pystac validations https://pystac.readthedocs.io/en/stable/api/version.html",
64+
)
6165

6266
@model_validator(mode="before")
6367
def check_transaction_fields(cls, values):

stac_api/infrastructure/construct.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ def __init__(
5353
),
5454
"DB_MIN_CONN_SIZE": "0",
5555
"DB_MAX_CONN_SIZE": "1",
56+
"PYSTAC_STAC_VERSION_OVERRIDE": veda_stac_settings.pystac_stac_version_override,
5657
**{k.upper(): v for k, v in veda_stac_settings.env.items()},
5758
}
5859

stac_api/runtime/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"pygeoif<=0.8", # newest release (1.0+ / 09-22-2022) breaks a number of other geo libs
2020
"aws-lambda-powertools>=1.18.0",
2121
"aws_xray_sdk>=2.6.0,<3",
22-
"pystac[validation]==1.10.1",
22+
"pystac[validation]>=1.14.0",
2323
"pydantic>2",
2424
"eoapi-auth-utils==0.3.0",
2525
]

0 commit comments

Comments
 (0)