Skip to content

Commit

Permalink
Open-API: Make error required (#8765)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko authored Oct 18, 2023
1 parent e837973 commit 16c2af4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion open-api/rest-catalog-open-api.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ class IcebergErrorResponse(BaseModel):
class Config:
extra = Extra.forbid

error: Optional[ErrorModel] = None
error: ErrorModel


class CreateNamespaceResponse(BaseModel):
Expand Down
2 changes: 2 additions & 0 deletions open-api/rest-catalog-open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2323,6 +2323,8 @@ components:

IcebergErrorResponse:
type: object
required:
- error
properties:
error:
$ref: '#/components/schemas/ErrorModel'
Expand Down

0 comments on commit 16c2af4

Please sign in to comment.