From 16c2af49a142d7044b619403de3e52aed13893e0 Mon Sep 17 00:00:00 2001 From: Fokko Driesprong Date: Wed, 18 Oct 2023 17:23:10 +0200 Subject: [PATCH] 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 e72e07e15d42..3bc8574e0cd5 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 f9d76ff3c9f9..29f06ffc746c 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'