From b2485bb695894a75e3cf80d4eb69ba303ae8cbc3 Mon Sep 17 00:00:00 2001 From: Cheng-Yi Shih <48374270+cool9850311@users.noreply.github.com> Date: Mon, 23 Dec 2024 15:44:40 +0800 Subject: [PATCH] [#5911] fix(docs): Fix the wrong possible values. (#5922) ### What changes were proposed in this pull request? Fix the wrong possible values. Remove "COLUMN" from metadataObjectType possible values in get/set owner. ### Why are the changes needed? Fix: #5911 ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Just documents. --- docs/open-api/openapi.yaml | 3 +-- docs/open-api/owners.yaml | 21 +++++++++++++++++++-- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/docs/open-api/openapi.yaml b/docs/open-api/openapi.yaml index 0985a60eddb..dd0564a7f9c 100644 --- a/docs/open-api/openapi.yaml +++ b/docs/open-api/openapi.yaml @@ -469,6 +469,7 @@ components: schema: type: string enum: + - "METALAKE" - "CATALOG" - "SCHEMA" - "TABLE" @@ -476,8 +477,6 @@ components: - "FILESET" - "TOPIC" - "ROLE" - - "METALAKE" - metadataObjectFullName: name: metadataObjectFullName in: path diff --git a/docs/open-api/owners.yaml b/docs/open-api/owners.yaml index c0c6b8173f3..0ef0d4e9f01 100644 --- a/docs/open-api/owners.yaml +++ b/docs/open-api/owners.yaml @@ -22,7 +22,7 @@ paths: /metalakes/{metalake}/owners/{metadataObjectType}/{metadataObjectFullName}: parameters: - $ref: "./openapi.yaml#/components/parameters/metalake" - - $ref: "./openapi.yaml#/components/parameters/metadataObjectType" + - $ref: "#/components/parameters/metadataObjectTypeOfOwner" - $ref: "./openapi.yaml#/components/parameters/metadataObjectFullName" put: @@ -171,4 +171,21 @@ components: "org.apache.gravitino.exceptions.NotFoundException: Metadata object or owner does not exist", "..." ] - } \ No newline at end of file + } + + parameters: + metadataObjectTypeOfOwner: + name: metadataObjectType + in: path + description: The type of the metadata object + required: true + schema: + type: string + enum: + - "METALAKE" + - "CATALOG" + - "SCHEMA" + - "TABLE" + - "FILESET" + - "TOPIC" + - "ROLE" \ No newline at end of file