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

stac-check confusing results #108

Open
m-mohr opened this issue Aug 10, 2023 · 1 comment
Open

stac-check confusing results #108

m-mohr opened this issue Aug 10, 2023 · 1 comment
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@m-mohr
Copy link

m-mohr commented Aug 10, 2023

I'm trying to validate the following catalog: https://github.com/EOEPCA/open-science-catalog-metadata-testing

If I run stac-check catalog.json -l -a without recursion it says the catalog.json is valid.

If I run stac-check catalog.json -l -a -r with recursion is reports the following:

stac-check catalog.json -l -a -r

 ____  ____  __    ___       ___  _  _  ____  ___  __ _
/ ___)(_  _)/ _\  / __)___  / __)/ )( \(  __)/ __)(  / )
\___ \  )( /    \( (__(___)( (__ ) __ ( ) _)( (__  )  (
(____/ (__)\_/\_/ \___)     \___)\_)(_/(____)\___)(__\_)

stac-check: STAC spec validaton and linting tool

Thanks for using STAC version 1.0.0!

Validator: stac-validator 3.3.1


Recursive: Validate all assets in a collection or catalog
Max-depth = None
-------------------------
Asset 1 Validated: catalog.json

Valid CATALOG: True

Schemas validated:
    https://schemas.stacspec.org/v1.0.0/catalog-spec/json-schema/catalog.json

STAC Best Practices:
    A link to 'self' in links is strongly recommended

This object has 7 links

-------------------------
Asset 2 Validated: catalog.json

Valid: False
Schemas validated:
    https://schemas.stacspec.org/v1.0.0/catalog-spec/json-schema/catalog.json
Error Type: Exception
Error Message: list index out of range
-------------------------

What does this mean? Which file does it refer to? It's twice catalog.json, maybe report a full file path or so?
If it's the root catalog, there are no assets in there?!
Should "Asset 2 Validated" be: "File 2 Validated" to not confuse it with STAC assets?
The "list index out of range" should probably not occur?

@m-mohr m-mohr added bug Something isn't working documentation Improvements or additions to documentation labels Aug 10, 2023
@m-mohr
Copy link
Author

m-mohr commented Aug 10, 2023

Looks like this is partially originating from stac-validator, I see similar results there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant