-
Notifications
You must be signed in to change notification settings - Fork 7
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
Warning about missing self
links
#76
Comments
Maybe a WARNING isn't always necessary for something that may just be a 'recommendation' too? |
@gadomski Do you think I should remove this check entirely? Making it conditional on different types of collections is an option maybe, but I don't know if it's achievable? What do you think? |
in stac-api-validator, I feel like there are some things that are currently warnings that are more like "are you sure you meant to do this?" -- for example, when datetime values that are not RFC 3339-compliant are accepted. I wouldn't remove it entirely. I think you can probably come up with a good heuristic. The other option is having the ability to turn off specific checks link most linters do, so an implementer who intentionally didn't have self links could explicitly turn that warning off. |
While the spec says
self
links are strongly recommended (e.g. from the item-spec),the best practices have multiple locations where a
self
link is not recommended for all objects in a tree. E.g. inSelf-contained
:And
Relative published
:IMO currently warning every time a
self
link is missing is a false positive, and the warning should either be dropped or put-behind an opt-in flag. I also think this could/should also be opened an issue instac-spec
itself.The text was updated successfully, but these errors were encountered: