Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add STAC_API_VERSION in landing page #761

Closed
m-mohr opened this issue Oct 14, 2024 · 6 comments
Closed

Add STAC_API_VERSION in landing page #761

m-mohr opened this issue Oct 14, 2024 · 6 comments

Comments

@m-mohr
Copy link
Contributor

m-mohr commented Oct 14, 2024

I'm a bit confused by

stac_version: str = attr.ib(default=STAC_API_VERSION)

STAC_API_VERSION is meant to be the STAC API version (i.e. stac-api-spec), right?

But the STAC API Version is different to the STAC version. We try to expose STAC 1.1.0 items and update the landing page to 1.1.0, too, but setting the STAC_API_VERSION seems incorrect, because there is no 1.1.0 version for the API.

@vincentsarago
Copy link
Member

yeah I think this got mixed up.

I think we should update this to STAC_VERSION and not STAC_API_VERION

https://github.com/stac-utils/stac-pydantic/blob/main/stac_pydantic/catalog.py#L17

@m-mohr
Copy link
Contributor Author

m-mohr commented Oct 14, 2024

Maybe it's also valuable to have STAC_API_VERSION if you want to switch between (bugfix) API versions, but having a separate STAC_VERSION is certainly a good idea. Do you think it makes sense to also have a STAC_API_VERSION? (e.g. to update to easily/quickly STAC API 1.0.1 once released?)

@vincentsarago
Copy link
Member

@vincentsarago
Copy link
Member

I've created #762

adding stac_api_version is a bit more complication because it will involve more changes and a new Minor version so if we really want this we should create a specific issue for it

@m-mohr
Copy link
Contributor Author

m-mohr commented Oct 14, 2024

Not feeling strongly about STAC_API_VERSION, we can just fix the actual issue for now. Thanks for creating the PR!

@vincentsarago vincentsarago changed the title Mixup: stac_version != STAC_API_VERSION Add STAC_API_VERSION in landing page Oct 15, 2024
@vincentsarago
Copy link
Member

closing this for now because it's not a spec requirement

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants