Skip to content

Commit

Permalink
Open-API: Make error required
Browse files Browse the repository at this point in the history
  • Loading branch information
Fokko committed Oct 10, 2023
1 parent 103038d commit be1533c
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 @@ -460,7 +460,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 @@ -2322,6 +2322,8 @@ components:

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

0 comments on commit be1533c

Please sign in to comment.