-
Notifications
You must be signed in to change notification settings - Fork 3
Processing properties are not required on providers #8 #13
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
Conversation
Co-authored-by: Emmanuel Mathot <emmanuel.mathot@gmail.com>
| - The fields can also be used in summaries, assets or Item asset definitions. | ||
|
|
||
| If the extension is given in the `stac_extensions` list, at least one of the fields must be specified in any of the given places listed above. | ||
| Please note that the JSON Schema might not be able to validate this requirement in all cases due to limitations in JSON Schema. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we make sure which exact places this requirement is validated in, or at least which places it should be validated in? Then we could add tests to make sure it works that way. Otherwise users of the extension have to be JSON Schema experts to work out whether their use case is even validated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, but I don't have the time for it. A proposal would be welcome.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working on some tests which illustrate the existing (buggy) behaviour.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #16.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I've fixed the main issues in #9. Except for some remaining weird behaviour it should now be possible to conclusively say where these fields can be used, and how.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assumed you'd want some text to be added to this PR which makes requirements clear by just reading the text. Otherwise, we could just merge this now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Theistext doesn't tell the user exactly where these properties can be used such that they will be validated, but the tests in #9 do. Maybe we could use the tests as a template for updating the documentation, so that it's precise and complete?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I assumed you'd provide the text as you had worked on #9 ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can do.
|
Merging for now. Additional changes (e.g. #13 (comment)) can be added in a new PR. |
Attempt to clarify requirements, fixes #8. @l0b0