From 0e86ae0a0688e90f568d19663a15e2d0c3513ef3 Mon Sep 17 00:00:00 2001 From: Pete Gadomski Date: Tue, 7 Jan 2025 15:52:14 -0700 Subject: [PATCH] fix: use AnyUrl for comparisons This worked as-was in pydantic v2.9 but not in v2.10 --- stac_pydantic/api/landing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stac_pydantic/api/landing.py b/stac_pydantic/api/landing.py index 917b291..72db27d 100644 --- a/stac_pydantic/api/landing.py +++ b/stac_pydantic/api/landing.py @@ -35,7 +35,7 @@ def required_links(self) -> "LandingPage": ), f"STAC API conform Landing pages must include a `{rel}` link." if ( - HttpUrl(f"https://api.stacspec.org/v{STAC_API_VERSION}/collections") + AnyUrl(f"https://api.stacspec.org/v{STAC_API_VERSION}/collections") in self.conformsTo ): required_collections_rels = [Relations.data]