Skip to content

Extra stac validate#506

Open
EmileSonneveld wants to merge 4 commits into
masterfrom
extra_stac_validate
Open

Extra stac validate#506
EmileSonneveld wants to merge 4 commits into
masterfrom
extra_stac_validate

Conversation

@EmileSonneveld
Copy link
Copy Markdown
Member

WIP. Too many changes for the moment.
@copilot

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b055b76ee3

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread openeo_driver/views.py
pystac_obj = pystac.Collection.from_dict(result)
else:
pystac_obj = pystac.read_dict(result)
pystac_obj.validate()
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Add the PySTAC validation dependency before validating

When openeo_driver is installed normally, setup.py only pulls in pystac>=1.8.0; jsonschema is currently only listed in the test extras. PySTAC's validate() path requires its validation extra/jsonschema, so this new runtime call makes /jobs/{id}/results raise an ImportError/500 in a minimal production install as soon as a finished job result is returned. Either promote the validation dependency to runtime dependencies or avoid validating on the request path.

Useful? React with 👍 / 👎.

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.

1 participant