Skip to content

Commit

Permalink
[apache#5911] fix(docs): Fix the wrong possible values. (apache#5922)
Browse files Browse the repository at this point in the history
### 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: apache#5911

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Just documents.
  • Loading branch information
cool9850311 authored and Abyss-lord committed Dec 29, 2024
1 parent b516b32 commit b2485bb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docs/open-api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -469,15 +469,14 @@ components:
schema:
type: string
enum:
- "METALAKE"
- "CATALOG"
- "SCHEMA"
- "TABLE"
- "COLUMN"
- "FILESET"
- "TOPIC"
- "ROLE"
- "METALAKE"

metadataObjectFullName:
name: metadataObjectFullName
in: path
Expand Down
21 changes: 19 additions & 2 deletions docs/open-api/owners.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -171,4 +171,21 @@ components:
"org.apache.gravitino.exceptions.NotFoundException: Metadata object or owner does not exist",
"..."
]
}
}

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"

0 comments on commit b2485bb

Please sign in to comment.