Skip to content

Commit

Permalink
Support /validation endpoint in Connection.as_curl
Browse files Browse the repository at this point in the history
  • Loading branch information
soxofaan committed May 23, 2024
1 parent a1d0b63 commit 33a54d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions openeo/rest/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1755,6 +1755,8 @@ def as_curl(
if isinstance(self.auth, BearerAuth):
cmd += ["-H", f"Authorization: Bearer {'...' if obfuscate_auth else self.auth.bearer}"]
pg_with_metadata = self._build_request_with_process_graph(data)
if path == "/validation":
pg_with_metadata = pg_with_metadata["process"]
post_json = json.dumps(pg_with_metadata, separators=(",", ":"))
cmd += ["--data", post_json]
cmd += [self.build_url(path)]
Expand Down

0 comments on commit 33a54d1

Please sign in to comment.