mchades commented on code in PR #15115:
URL: https://github.com/apache/gravitino/pull/15115#discussion_r4628325520


##########
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:
   Please scope the HTTP 409 wording here and in the `409` response description 
to draft domains with subdomains. A published parent with subdomains returns 
HTTP 400 because the status check runs first.



-- 
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]

Reply via email to