Skip to content

Commit

Permalink
Merge branch 'main' into v.1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhealy1 committed Jan 17, 2025
2 parents 66e8b5a + 9e35465 commit 24562d8
Show file tree
Hide file tree
Showing 14 changed files with 4,405 additions and 2,828 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ The format is (loosely) based on [Keep a Changelog](http://keepachangelog.com/)

## Unreleased

### Added

- Allow to provide HTTP headers ([#114](https://github.com/stac-utils/stac-check/pull/114))
- Configure whether to open URLs when validating assets ([#114](https://github.com/stac-utils/stac-check/pull/114))

### Changed

## [v1.5.0] - 2025-01-17
Expand Down
50 changes: 39 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ Options:
argument to get full recursion. Ignored if
`recursive == False`.
-r, --recursive Recursively validate all related stac objects.
--no-assets-urls Disables the opening of href links when validating assets
(enabled by default).
--header KEY VALUE HTTP header to include in the requests. Can be used
multiple times.
--help Show this message and exit. Show this message and exit.
```
---
Expand Down Expand Up @@ -58,11 +62,11 @@ for k, v in linter.create_best_practices_dict().items():
\___ \ )( / \( (__(___)( (__ ) __ ( ) _)( (__ ) (
(____/ (__)\_/\_/ \___) \___)\_)(_/(____)\___)(__\_)
stac-check: STAC spec validaton and linting tool
stac-check: STAC spec validation and linting tool
Please upgrade from version 0.9.0 to version 1.0.0!
Validator: stac-validator 3.1.0
Validator: stac-validator 3.5.0
Recursive: Validate all assets in a collection or catalog
Expand Down Expand Up @@ -98,11 +102,11 @@ Error Message: Expecting value: line 1 column 1 (char 0)

``` stac-check sample_files/0.9.0/landsat8-sample.json```

<pre><b>stac-check: STAC spec validaton and linting tool</b>
<pre><b>stac-check: STAC spec validation and linting tool</b>

Please upgrade from version 0.9.0 to version 1.0.0!

Validator: stac-validator 2.3.0
Validator: stac-validator 3.5.0

Valid ITEM: True

Expand All @@ -126,11 +130,11 @@ This object has 4 links

``` stac-check sample_files/1.0.0/core-item.json --assets```
<pre>
<b>stac-check: STAC spec validaton and linting tool</b>
<b>stac-check: STAC spec validation and linting tool</b>

Thanks for using STAC version 1.0.0!

Validator: stac-validator 2.3.0
Validator: stac-validator 3.5.0

Valid ITEM: True

Expand Down Expand Up @@ -161,11 +165,11 @@ This object has 4 links

``` stac-check sample_files/1.0.0/core-item-bad-links.json --links --assets```
<pre>
<b>stac-check: STAC spec validaton and linting tool</b>
<b>stac-check: STAC spec validation and linting tool</b>

Thanks for using STAC version 1.0.0!

Validator: stac-validator 2.3.0
Validator: stac-validator 3.5.0

Valid ITEM: True

Expand Down Expand Up @@ -203,11 +207,11 @@ This object has 4 links

``` stac-check sample_files/0.9.0/bad-item.json```
<pre>
<b>stac-check: STAC spec validaton and linting tool</b>
<b>stac-check: STAC spec validation and linting tool</b>

Please upgrade from version 0.9.0 to version 1.0.0!

Validator: stac-validator 2.3.0
Validator: stac-validator 3.5.0

Valid : False

Expand All @@ -224,6 +228,30 @@ Validation error message:

This object has 5 links
</pre>

``` stac-check https://stac-catalog.eu/collections/sentinel-s2-l2a/items/item1 --assets --no-assets-urls --header x-api-key $MY_API_KEY --header foo bar```
<pre>
<b>stac-check: STAC spec validation and linting tool</b>

Thanks for using STAC version 1.0.0!

Validator: stac-validator 3.5.0

Valid ITEM: True

Schemas validated:
https://stac-extensions.github.io/timestamps/v1.1.0/schema.json
https://schemas.stacspec.org/v1.0.0/item-spec/json-schema/item.json

STAC Best Practices:
A STAC collection should contain a summaries field
It is recommended to store information like eo:bands in summaries


No ASSET format errors!

This object has 4 links
</pre>
---
### Create local docs in the /docs folder
`$ pdoc --html --output-dir pdoc stac_check --force`
`$ pdoc --output-dir pdoc ./stac_check`
4 changes: 2 additions & 2 deletions docs/cli.rst
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ CLI Reference
(____/ (__)\_/\_/ \___) \___)\_)(_/(____)\___)(__\_)
&#34;&#34;&#34;)

click.secho(&#34;stac-check: STAC spec validaton and linting tool&#34;, bold=True)
click.secho(&#34;stac-check: STAC spec validation and linting tool&#34;, bold=True)

click.secho()

Expand Down Expand Up @@ -351,7 +351,7 @@ CLI Reference
(____/ (__)\_/\_/ \___) \___)\_)(_/(____)\___)(__\_)
&#34;&#34;&#34;)

click.secho(&#34;stac-check: STAC spec validaton and linting tool&#34;, bold=True)
click.secho(&#34;stac-check: STAC spec validation and linting tool&#34;, bold=True)

click.secho()

Expand Down
7 changes: 7 additions & 0 deletions pdoc/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="refresh" content="0; url=./stac_check.html"/>
</head>
</html>
46 changes: 46 additions & 0 deletions pdoc/search.js

Large diffs are not rendered by default.

234 changes: 234 additions & 0 deletions pdoc/stac_check.html

Large diffs are not rendered by default.

Loading

0 comments on commit 24562d8

Please sign in to comment.