nastra commented on code in PR #12518:
URL: https://github.com/apache/iceberg/pull/12518#discussion_r1996077379
##########
open-api/rest-catalog-open-api.yaml:
##########
@@ -410,7 +410,17 @@ paths:
204:
description: Success, no content
400:
- $ref: '#/components/responses/BadRequestErrorResponse'
+ description:
+ A bad request error or a NamespaceNotEmptyException in case the
namespace is not empty
+ content:
+ application/json:
+ schema:
+ $ref: '#/components/schemas/IcebergErrorResponse'
+ examples:
+ BadRequestExample:
+ $ref: '#/components/examples/BadRequestError'
+ NamespaceNotEmptyExample:
Review Comment:
The current server behavior would be to return a 400 and the goal here was
to document that behavior. Going forward we could add a new error code to
indicate the `NamespaceNotEmptyException` but clients would still have to look
at the error type of the 400 when talking to legacy REST servers
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]