This is an automated email from the ASF dual-hosted git repository.

singhpk234 pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iceberg.git


The following commit(s) were added to refs/heads/main by this push:
     new 9d7213db48 SPEC: Mark plan-id as required for submitted status
9d7213db48 is described below

commit 9d7213db4875688dcc582729d0aeea61e4b08e73
Author: Prashant Singh <[email protected]>
AuthorDate: Wed Nov 19 02:53:58 2025 -0800

    SPEC: Mark plan-id as required for submitted status
---
 open-api/rest-catalog-open-api.py   | 4 ++--
 open-api/rest-catalog-open-api.yaml | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/open-api/rest-catalog-open-api.py 
b/open-api/rest-catalog-open-api.py
index d22b6fdceb..bcd0f48a38 100644
--- a/open-api/rest-catalog-open-api.py
+++ b/open-api/rest-catalog-open-api.py
@@ -987,8 +987,8 @@ class FailedPlanningResult(IcebergErrorResponse):
 
 class AsyncPlanningResult(BaseModel):
     status: Literal['submitted'] = Field(..., const=True)
-    plan_id: Optional[str] = Field(
-        None, alias='plan-id', description='ID used to track a planning 
request'
+    plan_id: str = Field(
+        ..., alias='plan-id', description='ID used to track a planning request'
     )
 
 
diff --git a/open-api/rest-catalog-open-api.yaml 
b/open-api/rest-catalog-open-api.yaml
index a661330b00..cf00676a8f 100644
--- a/open-api/rest-catalog-open-api.yaml
+++ b/open-api/rest-catalog-open-api.yaml
@@ -3482,6 +3482,7 @@ components:
       type: object
       required:
         - status
+        - plan-id
       properties:
         status:
           $ref: '#/components/schemas/PlanStatus'

Reply via email to