jerryshao commented on code in PR #15115:
URL: https://github.com/apache/gravitino/pull/15115#discussion_r4628371883
##########
docs/open-api/domains.yaml:
##########
@@ -238,10 +238,12 @@ paths:
summary: Delete a domain
operationId: deleteDomain
description: >-
- Deletes only the domain and its parent edge. The backing tag, its
assignments and member
- metadata objects remain unchanged; member objects do not prevent
deletion. Deletion does
- not cascade to subdomains: a domain with subdomains fails with HTTP
409,
- NonEmptyDomainException and error code 1005. Returns dropped=false if
the domain is absent
+ Deletes only the domain and its parent edge. Only a draft domain can
be deleted: deleting a
+ published domain fails with HTTP 400 and IllegalArgumentException;
unpublish it first. The
+ backing tag, its assignments and member metadata objects remain
unchanged; member objects
+ do not prevent deletion. Deletion does not cascade to subdomains: a
domain with subdomains
Review Comment:
Scoped the HTTP 409 wording to draft domains with subdomains in the delete
description and the `409` response description, and the same in the error table
of `manage-domains-in-gravitino.md`. A published parent with subdomains is
documented as HTTP 400.
_🤖 Addressed by [Claude Code](https://claude.com/claude-code)_
--
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]