stevenzwu commented on code in PR #12584:
URL: https://github.com/apache/iceberg/pull/12584#discussion_r3358407716


##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -4278,6 +4416,345 @@ components:
         metadata:
           $ref: '#/components/schemas/TableMetadata'
 
+    QueryEventsResponse:
+      type: object
+      required:
+        - continuation-token
+        - events
+      properties:
+        continuation-token:
+          type: string
+          description: >
+            An opaque continuation token to fetch the next page of events.
+            This token encodes the server's cursor position and filter state.
+            Clients should treat this as an opaque value and pass it 
unmodified in subsequent requests.
+            When no more events are currently available, the server returns an 
empty `events` array
+            and a `continuation-token` that the client can re-issue later to 
receive events that
+            occur after this point.
+        events:
+          type: array
+          items:
+            $ref: "#/components/schemas/Event"
+
+    Event:
+      type: object
+      required:
+        - event-id
+        - request-id
+        - request-event-count
+        - timestamp-ms
+        - operation
+      properties:
+        event-id:
+          type: string
+          description: Unique ID of this event. Clients should perform 
deduplication based on this ID.
+        request-id:
+          description: >
+            Opaque ID of the request this change belongs to.
+            This ID can be used to identify events that were part of the same 
request.
+          type: string
+        request-event-count:
+          type: integer
+          description: >
+            Number of events produced by the originating catalog request (e.g. 
updateTable
+            or commitTransaction) that generated this event. Such requests can 
apply multiple
+            updates atomically, each surfaced as a separate event sharing the 
same `request-id`;
+            this count reports how many events that originating request 
produced in total.
+        timestamp-ms:
+          type: integer
+          format: int64
+          description: >
+            Timestamp when this event occurred (epoch milliseconds).
+            Timestamps are not guaranteed to be unique. Typically all events in
+            a transaction will have the same timestamp.
+        actor:
+          type: object
+          description: >
+            The actor who performed the operation, such as a user or service 
account.
+            Implementations may add arbitrary additional fields; the optional 
`id` field is
+            recommended as a portable identifier that consumers can render and 
key on.
+          properties:
+            id:
+              type: string
+              description: >
+                Recommended, optional. Stable identifier of the actor (e.g. a 
user or
+                service account). Provided when the server can attribute the 
operation.
+          additionalProperties: true
+        operation:

Review Comment:
   Minor consistency nit: this field is missing `type: object`. OpenAPI 3.1 
infers the type from `anyOf` members, but every other object-shaped field in 
the events spec (`BaseOperation`, every concrete `*Operation`, and the 
surrounding `Event` properties) declares `type: object` explicitly. Adding 
`type: object` here would match.
   
   ```yaml
   operation:
     type: object
     description: >
       ...
     anyOf:
       ...
   ```



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