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

Validate that items have a collection link if they have collection set when decoding #371

Open
jisantuc opened this issue Jul 28, 2021 · 0 comments

Comments

@jisantuc
Copy link
Contributor

Describe the bug
Items that set the collection property must also have a link with the collection rel type (spec). We have enough info to validate that at decoding time, so we should do that.

Expected behavior
Invalid items can't be decoded and fail with an appropriate message.

Additional context
https://azavea.slack.com/archives/CM766K2QJ/p1627420112000800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant