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 fb52fdef4f REST: Mark plan-id as required on
CompletedPlanningWithIDResult result
fb52fdef4f is described below
commit fb52fdef4fdcaa3cb5779e4d5b1b9f1ea7522e73
Author: Prashant Singh <[email protected]>
AuthorDate: Wed Nov 19 08:53:12 2025 -0800
REST: Mark plan-id as required on CompletedPlanningWithIDResult result
---
open-api/rest-catalog-open-api.py | 4 ++--
open-api/rest-catalog-open-api.yaml | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/open-api/rest-catalog-open-api.py
b/open-api/rest-catalog-open-api.py
index bcd0f48a38..25a1a1a5c4 100644
--- a/open-api/rest-catalog-open-api.py
+++ b/open-api/rest-catalog-open-api.py
@@ -1522,8 +1522,8 @@ class ReportMetricsRequest1(ScanReport):
class CompletedPlanningWithIDResult(CompletedPlanningResult):
- 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'
)
status: Literal['completed']
diff --git a/open-api/rest-catalog-open-api.yaml
b/open-api/rest-catalog-open-api.yaml
index cf00676a8f..788c6bd581 100644
--- a/open-api/rest-catalog-open-api.yaml
+++ b/open-api/rest-catalog-open-api.yaml
@@ -3460,6 +3460,8 @@ components:
allOf:
- $ref: '#/components/schemas/CompletedPlanningResult'
- type: object
+ required:
+ - plan-id
properties:
plan-id:
description: ID used to track a planning request