adutra commented on code in PR #15112:
URL: https://github.com/apache/iceberg/pull/15112#discussion_r2760076064


##########
open-api/rest-catalog-open-api.py:
##########
@@ -985,6 +985,39 @@ class PlanTask(BaseModel):
     )
 
 
+class MultiValuedMap(BaseModel):
+    """
+    A map of string keys where each key can map to multiple string values.
+    """
+
+    __root__: dict[str, list[str]]
+
+
+class RemoteSignRequest(BaseModel):
+    """
+    The request to be signed remotely.
+    """
+
+    region: str
+    uri: str
+    method: Literal['PUT', 'GET', 'HEAD', 'POST', 'DELETE', 'PATCH', 'OPTIONS']
+    headers: MultiValuedMap
+    properties: dict[str, str] | None = None
+    body: str | None = Field(
+        None,
+        description='Optional body of the request to send to the signing API. 
This should only be populated for requests which do not have the relevant data 
in the URI itself (e.g. DeleteObjects requests)',

Review Comment:
   The current description is admittedly a bit too normative, and biaised 
towards S3 on top of that. It should probably be revisited. But again, let's 
focus on promoting existing functionality from aws to core in this PR, and 
tackle enhancements to both the spec and test infra to follow-up PRs, wdyt?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to