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

etudenhoefner 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 16c2af49a1 Open-API: Make error required (#8765)
16c2af49a1 is described below

commit 16c2af49a142d7044b619403de3e52aed13893e0
Author: Fokko Driesprong <[email protected]>
AuthorDate: Wed Oct 18 17:23:10 2023 +0200

    Open-API: Make error required (#8765)
---
 open-api/rest-catalog-open-api.py   | 2 +-
 open-api/rest-catalog-open-api.yaml | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/open-api/rest-catalog-open-api.py 
b/open-api/rest-catalog-open-api.py
index e72e07e15d..3bc8574e0c 100644
--- a/open-api/rest-catalog-open-api.py
+++ b/open-api/rest-catalog-open-api.py
@@ -464,7 +464,7 @@ class IcebergErrorResponse(BaseModel):
     class Config:
         extra = Extra.forbid
 
-    error: Optional[ErrorModel] = None
+    error: ErrorModel
 
 
 class CreateNamespaceResponse(BaseModel):
diff --git a/open-api/rest-catalog-open-api.yaml 
b/open-api/rest-catalog-open-api.yaml
index f9d76ff3c9..29f06ffc74 100644
--- a/open-api/rest-catalog-open-api.yaml
+++ b/open-api/rest-catalog-open-api.yaml
@@ -2323,6 +2323,8 @@ components:
 
     IcebergErrorResponse:
       type: object
+      required:
+        - error
       properties:
         error:
           $ref: '#/components/schemas/ErrorModel'

Reply via email to