Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
remove authentication error code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouzilong2020 committed Jan 30, 2024
1 parent 762439f commit 3ea3cf6
Showing 1 changed file with 0 additions and 148 deletions.
148 changes: 0 additions & 148 deletions doc/openapi/rest-catalog-open-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,6 @@ paths:
}
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -155,10 +149,6 @@ paths:
$ref: "#/components/responses/ListNamespacesResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - Namespace provided in the `parent` query parameter is not found.
content:
Expand All @@ -168,8 +158,6 @@ paths:
examples:
NoSuchNamespaceExample:
$ref: "#/components/examples/NoSuchNamespaceError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand All @@ -192,10 +180,6 @@ paths:
$ref: "#/components/responses/CreateNamespaceResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
406:
$ref: "#/components/responses/UnsupportedOperationResponse"
409:
Expand All @@ -207,8 +191,6 @@ paths:
examples:
NamespaceAlreadyExists:
$ref: "#/components/examples/NamespaceAlreadyExistsError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand All @@ -230,10 +212,6 @@ paths:
$ref: "#/components/responses/GetNamespaceResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - Namespace not found
content:
Expand All @@ -243,8 +221,6 @@ paths:
examples:
NoSuchNamespaceExample:
$ref: "#/components/examples/NoSuchNamespaceError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand All @@ -261,10 +237,6 @@ paths:
description: Success, no content
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - Namespace not found
content:
Expand All @@ -274,8 +246,6 @@ paths:
examples:
NoSuchNamespaceExample:
$ref: "#/components/examples/NoSuchNamespaceError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand All @@ -291,10 +261,6 @@ paths:
description: Success, no content
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - Namespace to delete does not exist.
content:
Expand All @@ -304,8 +270,6 @@ paths:
examples:
NoSuchNamespaceExample:
$ref: "#/components/examples/NoSuchNamespaceError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -341,10 +305,6 @@ paths:
$ref: "#/components/responses/UpdateNamespacePropertiesResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - Namespace not found
content:
Expand All @@ -365,8 +325,6 @@ paths:
examples:
UnprocessableEntityDuplicateKey:
$ref: "#/components/examples/UnprocessableEntityDuplicateKey"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand All @@ -388,10 +346,6 @@ paths:
$ref: "#/components/responses/ListTablesResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - The namespace specified does not exist
content:
Expand All @@ -401,8 +355,6 @@ paths:
examples:
NamespaceNotFound:
$ref: "#/components/examples/NoSuchNamespaceError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -436,10 +388,6 @@ paths:
$ref: "#/components/responses/CreateTableResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - The namespace specified does not exist
content:
Expand All @@ -458,8 +406,6 @@ paths:
examples:
NamespaceAlreadyExists:
$ref: "#/components/examples/TableAlreadyExistsError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -487,10 +433,6 @@ paths:
$ref: "#/components/responses/LoadTableResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - The namespace specified does not exist
content:
Expand All @@ -509,8 +451,6 @@ paths:
examples:
NamespaceAlreadyExists:
$ref: "#/components/examples/TableAlreadyExistsError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -560,10 +500,6 @@ paths:
$ref: "#/components/responses/LoadTableResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - NoSuchTableException, table to load does not exist
content:
Expand All @@ -573,8 +509,6 @@ paths:
examples:
TableToLoadDoesNotExist:
$ref: "#/components/examples/NoSuchTableError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -612,10 +546,6 @@ paths:
$ref: "#/components/responses/CommitTableResponse"
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - NoSuchTableException, table to load does not exist
content:
Expand All @@ -631,8 +561,6 @@ paths:
application/json:
schema:
$ref: "#/components/schemas/IcebergErrorResponse"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
500:
description: An unknown server-side problem occurred; the commit state is unknown.
content:
Expand Down Expand Up @@ -715,10 +643,6 @@ paths:
description: Success, no content
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - NoSuchTableException, Table to drop does not exist
content:
Expand All @@ -728,8 +652,6 @@ paths:
examples:
TableToDeleteDoesNotExist:
$ref: "#/components/examples/NoSuchTableError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand All @@ -746,10 +668,6 @@ paths:
description: Success, no content
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - NoSuchTableException, Table not found
content:
Expand All @@ -759,8 +677,6 @@ paths:
examples:
TableToLoadDoesNotExist:
$ref: "#/components/examples/NoSuchTableError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -793,10 +709,6 @@ paths:
description: Success, no content
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found
- NoSuchTableException, Table to rename does not exist
Expand All @@ -820,8 +732,6 @@ paths:
$ref: "#/components/schemas/IcebergErrorResponse"
example:
$ref: "#/components/examples/TableAlreadyExistsError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -850,10 +760,6 @@ paths:
description: Success, no content
400:
$ref: "#/components/responses/BadRequestErrorResponse"
401:
$ref: "#/components/responses/UnauthorizedResponse"
403:
$ref: "#/components/responses/ForbiddenResponse"
404:
description: Not Found - NoSuchTableException, table to load does not exist
content:
Expand All @@ -863,8 +769,6 @@ paths:
examples:
TableToLoadDoesNotExist:
$ref: "#/components/examples/NoSuchTableError"
419:
$ref: "#/components/responses/AuthenticationTimeoutResponse"
503:
$ref: "#/components/responses/ServiceUnavailableResponse"
5XX:
Expand Down Expand Up @@ -2316,42 +2220,6 @@ components:
},
}

# Note that this is a representative example response for use as a shorthand in the spec.
# The fields `message` and `type` as indicated here are not presently prescriptive.
UnauthorizedResponse:
description: Unauthorized. Authentication is required and has failed or has not yet been provided.
content:
application/json:
schema:
$ref: "#/components/schemas/IcebergErrorResponse"
example:
{
"error":
{
"message": "Not authorized to make this request",
"type": "NotAuthorizedException",
"code": 401,
},
}

# Note that this is a representative example response for use as a shorthand in the spec.
# The fields `message` and `type` as indicated here are not presently prescriptive.
ForbiddenResponse:
description: Forbidden. Authenticated user does not have the necessary permissions.
content:
application/json:
schema:
$ref: "#/components/schemas/IcebergErrorResponse"
example:
{
"error":
{
"message": "Not authorized to make this request",
"type": "NotAuthorizedException",
"code": 403,
},
}

# Note that this is a representative example response for use as a shorthand in the spec.
# The fields `message` and `type` as indicated here are not presently prescriptive.
UnsupportedOperationResponse:
Expand Down Expand Up @@ -2434,22 +2302,6 @@ components:
EmptyResponse:
$ref: "#/components/examples/ListNamespacesEmptyExample"

AuthenticationTimeoutResponse:
description: Credentials have timed out. If possible, the client should refresh credentials and retry.
content:
application/json:
schema:
$ref: "#/components/schemas/IcebergErrorResponse"
example:
{
"error":
{
"message": "Credentials have timed out",
"type": "AuthenticationTimeoutException",
"code": 419,
},
}

ServiceUnavailableResponse:
description:
The service is not ready to handle the request. The client should wait and retry.
Expand Down

0 comments on commit 3ea3cf6

Please sign in to comment.