Skip to content

Conversation

@m-mohr
Copy link
Contributor

@m-mohr m-mohr commented Nov 27, 2021

Attempt to clarify requirements, fixes #8. @l0b0

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.
Copy link
Contributor

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.

Copy link
Contributor Author

@m-mohr m-mohr Dec 11, 2021

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.

Copy link
Contributor

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.

Copy link
Contributor

@l0b0 l0b0 Dec 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #16.

Copy link
Contributor

@l0b0 l0b0 Dec 14, 2021

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.

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

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 ;-)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can do.

@m-mohr
Copy link
Contributor Author

m-mohr commented Jan 3, 2022

Merging for now. Additional changes (e.g. #13 (comment)) can be added in a new PR.

@m-mohr m-mohr merged commit 709391b into main Jan 3, 2022
@m-mohr m-mohr deleted the fix-8 branch January 3, 2022 11:52
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

Successfully merging this pull request may close these issues.

Processing properties are not required on providers

4 participants