From be1533c625d91ef74d337d3b00aaa06714259631 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Tue, 10 Oct 2023 16:51:01 +0200 Subject: [PATCH] Open-API: Make error required --- 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 5de6c8969fee..5c4e07eb6fa2 100644 --- a/open-api/rest-catalog-open-api.py +++ b/open-api/rest-catalog-open-api.py @@ -460,7 +460,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 b1fbc52dd1f5..c505f2a0d6fd 100644 --- a/open-api/rest-catalog-open-api.yaml +++ b/open-api/rest-catalog-open-api.yaml @@ -2322,6 +2322,8 @@ components: IcebergErrorResponse: type: object + required: + - error properties: error: $ref: '#/components/schemas/ErrorModel'