mchades commented on code in PR #14667:
URL: https://github.com/apache/gravitino/pull/14667#discussion_r4488361638
##########
docs/open-api/openapi.yaml:
##########
@@ -422,6 +422,44 @@ components:
"message": "Malformed request"
}
+ ForbiddenErrorResponse:
+ description: >-
+ Forbidden - The caller is not allowed to perform the operation. When
authorization
+ is enabled, a missing metalake or a caller who is not a member of the
metalake
+ also returns 403.
+ content:
+ application/json:
+ schema:
+ $ref: "#/components/schemas/ErrorModel"
+ example:
+ code: 1008
+ type: ForbiddenException
+ message: Current user alice is not a member of metalake metalake1,
or the metalake does not exist
+
+ NotAcceptableErrorResponse:
+ description: >-
+ Not Acceptable - The requested API version is unsupported, or the
effective
+ Accept header cannot be served by this operation. When Accept has no
Gravitino
+ API version, including application/json, */*, or an absent header, the
server
+ uses the version from Content-Type if present, otherwise the default
API version.
+ An unsupported version returns IllegalArgumentException; failed
content negotiation
+ returns RESTException.
Review Comment:
The description now documents HTTP 406 with a JSON `ErrorModel` body. The
examples retain the actual `type` values returned by the API.
--
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]