Skip to content

Add support to validate_all for STACObject #1246

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

Merged

Conversation

chuckwondo
Copy link
Contributor

@chuckwondo chuckwondo commented Sep 28, 2023

Related Issue(s):

Description:

  • add validate_all_dict function for validating objects as dicts (i.e., rename original validate_all function)
  • deprecate support for passing dict objects to validate_all (use new validate_all_dict function instead)
  • add support for passing STACObject to validate_all (and prohibit passing a value for href when passing a STACObject)

PR Checklist:

  • pre-commit hooks pass locally
  • Tests pass (run scripts/test)
  • Documentation has been updated to reflect changes, if applicable
  • This PR maintains or improves overall codebase code coverage.
  • Changes are added to the CHANGELOG. See the docs for information about adding to the changelog.

@gadomski gadomski self-requested a review September 28, 2023 18:49
@gadomski gadomski linked an issue Sep 28, 2023 that may be closed by this pull request
@codecov
Copy link

codecov bot commented Sep 28, 2023

Codecov Report

Attention: 1 lines in your changes are missing coverage. Please review.

Files Coverage Δ
pystac/validation/__init__.py 87.32% <95.23%> (+7.63%) ⬆️

📢 Thoughts on this report? Let us know!.

@chuckwondo chuckwondo force-pushed the issues/1206-validate-all-stacobject branch from fafee0c to 7c5c83e Compare September 28, 2023 19:43
@chuckwondo chuckwondo requested a review from gadomski September 28, 2023 20:14
@gadomski gadomski enabled auto-merge September 29, 2023 02:03
chuckwondo and others added 4 commits September 29, 2023 05:13
Specifically:

- add `validate_all_dict` function for validating objects as dicts
  (i.e., rename original `validate_all` function)
- deprecate support for passing dict objects to `validate_all`
  (use new `validate_all_dict` function instead)
- add support for passing `STACObject` to `validate_all` (and
  prohibit passing a value for `href` when passing a `STACObject`)

Fixes stac-utils#1205
auto-merge was automatically disabled September 29, 2023 09:14

Head branch was pushed to by a user without write access

@chuckwondo chuckwondo force-pushed the issues/1206-validate-all-stacobject branch from 1686fd8 to a26747c Compare September 29, 2023 09:14
@gadomski gadomski added this pull request to the merge queue Sep 29, 2023
Merged via the queue into stac-utils:main with commit 1c33bc9 Sep 29, 2023
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.

Validate STAC links for single dict
2 participants