Skip to content

Commit 7f50eee

Browse files
authored
Merge pull request #135 from stac-utils/update-tests
Created api_lint.py module to handle API linting Added support for --item-collection flag to validate item collection responses Added support for --collections flag to validate collections responses Added support for --pages flag to limit the number of pages to validate Refactored display messages into a dedicated module for better code organization and maintainability Organized test files, added v1.0.0 recursion test
2 parents a8283ab + 4581699 commit 7f50eee

16 files changed

+1963
-1079
lines changed

CHANGELOG.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,21 @@ The format is (loosely) based on [Keep a Changelog](http://keepachangelog.com/)
66

77
## Unreleased
88

9+
## [v1.10.0] - 2025-06-20
10+
11+
### Added
12+
13+
- Created api_lint.py module to handle API linting ([#135](https://github.com/stac-utils/stac-check/pull/135))
14+
- Added support for --item-collection flag to validate item collection responses ([#135](https://github.com/stac-utils/stac-check/pull/135))
15+
- Added support for --collections flag to validate collections responses ([#135](https://github.com/stac-utils/stac-check/pull/135))
16+
- Added support for --pages flag to limit the number of pages to validate ([#135](https://github.com/stac-utils/stac-check/pull/135))
17+
18+
19+
### Changed
20+
21+
- Refactored display messages into a dedicated module for better code organization and maintainability ([#135](https://github.com/stac-utils/stac-check/pull/135))
22+
- Organized test files, added v1.0.0 recursion test ([#135](https://github.com/stac-utils/stac-check/pull/135))
23+
924
## [v1.9.1] - 2025-06-16
1025

1126
### Added
@@ -264,7 +279,8 @@ The format is (loosely) based on [Keep a Changelog](http://keepachangelog.com/)
264279
- Validation from stac-validator 2.3.0
265280
- Links and assets validation checks
266281

267-
[Unreleased]: https://github.com/stac-utils/stac-check/compare/v1.9.1...main
282+
[Unreleased]: https://github.com/stac-utils/stac-check/compare/v1.10.0...main
283+
[v1.10.0]: https://github.com/stac-utils/stac-check/compare/v1.9.1...v1.10.0
268284
[v1.9.1]: https://github.com/stac-utils/stac-check/compare/v1.9.0...v1.9.1
269285
[v1.9.0]: https://github.com/stac-utils/stac-check/compare/v1.8.0...v1.9.0
270286
[v1.8.0]: https://github.com/stac-utils/stac-check/compare/v1.7.0...v1.8.0

sample_files/1.0.0/collections.json

Lines changed: 3 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
{
2+
"type":"FeatureCollection","context":{"limit":10,"returned":10},"features":[{"id":"bio9","bbox":[-180.00013888885002,-90.00013888885,179.99985967115003,83.99986041515],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio9"}],"assets":{"bio9":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio9_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888885],[-180.00013888885002,83.99986041515],[179.99985967115003,83.99986041515],[179.99985967115003,-90.00013888885],[-180.00013888885002,-90.00013888885]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio9","proj:epsg":4326,"description":"CHELSA Climatologies bio9","full_filename":"CHELSA_bio9_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio8","bbox":[-180.00013888885002,-90.00013888885,179.99985967115003,83.99986041515],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio8"}],"assets":{"bio8":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio8_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888885],[-180.00013888885002,83.99986041515],[179.99985967115003,83.99986041515],[179.99985967115003,-90.00013888885],[-180.00013888885002,-90.00013888885]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio8","proj:epsg":4326,"description":"CHELSA Climatologies bio8","full_filename":"CHELSA_bio8_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio7","bbox":[-180.00013888885002,-90.00013888884999,179.99985967115003,83.99986041515001],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio7"}],"assets":{"bio7":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio7_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888884999],[-180.00013888885002,83.99986041515001],[179.99985967115003,83.99986041515001],[179.99985967115003,-90.00013888884999],[-180.00013888885002,-90.00013888884999]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio7","proj:epsg":4326,"description":"CHELSA Climatologies bio7","full_filename":"CHELSA_bio7_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio6","bbox":[-180.00013888885002,-90.00013888884999,179.99985967115003,83.99986041515001],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio6"}],"assets":{"bio6":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio6_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888884999],[-180.00013888885002,83.99986041515001],[179.99985967115003,83.99986041515001],[179.99985967115003,-90.00013888884999],[-180.00013888885002,-90.00013888884999]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio6","proj:epsg":4326,"description":"CHELSA Climatologies bio6","full_filename":"CHELSA_bio6_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio5","bbox":[-180.00013888885002,-90.00013888884999,179.99985967115003,83.99986041515001],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio5"}],"assets":{"bio5":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio5_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888884999],[-180.00013888885002,83.99986041515001],[179.99985967115003,83.99986041515001],[179.99985967115003,-90.00013888884999],[-180.00013888885002,-90.00013888884999]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio5","proj:epsg":4326,"description":"CHELSA Climatologies bio5","full_filename":"CHELSA_bio5_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio4","bbox":[-180.00013888885002,-90.00013888884999,179.99985967115003,83.99986041515001],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio4"}],"assets":{"bio4":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio4_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888884999],[-180.00013888885002,83.99986041515001],[179.99985967115003,83.99986041515001],[179.99985967115003,-90.00013888884999],[-180.00013888885002,-90.00013888884999]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio4","proj:epsg":4326,"description":"CHELSA Climatologies bio4","full_filename":"CHELSA_bio4_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio3","bbox":[-180.00013888885002,-90.00013888884999,179.99985967115003,83.99986041515001],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio3"}],"assets":{"bio3":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio3_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888884999],[-180.00013888885002,83.99986041515001],[179.99985967115003,83.99986041515001],[179.99985967115003,-90.00013888884999],[-180.00013888885002,-90.00013888884999]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio3","proj:epsg":4326,"description":"CHELSA Climatologies bio3","full_filename":"CHELSA_bio3_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio2","bbox":[-180.00013888885002,-90.00013888884999,179.99985967115003,83.99986041515001],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio2"}],"assets":{"bio2":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio2_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888884999],[-180.00013888885002,83.99986041515001],[179.99985967115003,83.99986041515001],[179.99985967115003,-90.00013888884999],[-180.00013888885002,-90.00013888884999]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio2","proj:epsg":4326,"description":"CHELSA Climatologies bio2","full_filename":"CHELSA_bio2_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio19","bbox":[-180.00013888885002,-90.00013888885,179.99985967115003,83.99986041515],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio19"}],"assets":{"bio19":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio19_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888885],[-180.00013888885002,83.99986041515],[179.99985967115003,83.99986041515],[179.99985967115003,-90.00013888885],[-180.00013888885002,-90.00013888885]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio19","proj:epsg":4326,"description":"CHELSA Climatologies bio19","full_filename":"CHELSA_bio19_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]},{"id":"bio18","bbox":[-180.00013888885002,-90.00013888885,179.99985967115003,83.99986041515],"type":"Feature","links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items/bio18"}],"assets":{"bio18":{"href":"https://object-arbutus.cloud.computecanada.ca/bq-io/io/CHELSA/climatologies/CHELSA_bio18_1981-2010_V.2.1.tif","type":"image/tiff; application=geotiff; profile=cloud-optimized","raster:bands":[{"unit":"","data_type":"uint16","spatial_resolution":0.0083333333}]}},"geometry":{"type":"Polygon","coordinates":[[[-180.00013888885002,-90.00013888885],[-180.00013888885002,83.99986041515],[179.99985967115003,83.99986041515],[179.99985967115003,-90.00013888885],[-180.00013888885002,-90.00013888885]]]},"collection":"chelsa-clim","properties":{"model":"past","version":2.1,"datetime":"1981-01-01T00:00:00Z","variable":"bio18","proj:epsg":4326,"description":"CHELSA Climatologies bio18","full_filename":"CHELSA_bio18_1981-2010_V.2.1.tif"},"stac_version":"1.0.0","stac_extensions":["https://stac-extensions.github.io/projection/v1.0.0/schema.json"]}],"links":[{"rel":"collection","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"parent","type":"application/json","href":"https://stac.geobon.org/collections/chelsa-clim"},{"rel":"root","type":"application/json","href":"https://stac.geobon.org/"},{"rel":"self","type":"application/geo+json","href":"https://stac.geobon.org/collections/chelsa-clim/items"},{"rel":"next","type":"application/geo+json","method":"GET","href":"https://stac.geobon.org/collections/chelsa-clim/items?token=next:bio18"}]}

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
from setuptools import find_packages, setup
55

6-
__version__ = "1.9.1"
6+
__version__ = "1.10.0"
77

88
with open("README.md", "r") as fh:
99
long_description = fh.read()

0 commit comments

Comments
 (0)