This is an automated email from the ASF dual-hosted git repository.
jshao pushed a commit to branch branch-0.9
in repository https://gitbox.apache.org/repos/asf/gravitino.git
The following commit(s) were added to refs/heads/branch-0.9 by this push:
new 6296ae91a1 [MINOR] docs(docs): Update models.yaml (#7051)
6296ae91a1 is described below
commit 6296ae91a19e55af08c6a9e5deffc31f28d957d8
Author: github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>
AuthorDate: Wed Apr 23 15:42:48 2025 +0800
[MINOR] docs(docs): Update models.yaml (#7051)
### What changes were proposed in this pull request?
Update models.yaml.
### Why are the changes needed?
Fix: minor
### Does this PR introduce _any_ user-facing change?
no.
### How was this patch tested?
local test.
Co-authored-by: Lord of Abyss
<[email protected]>
---
docs/open-api/models.yaml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/docs/open-api/models.yaml b/docs/open-api/models.yaml
index b42a44098d..e64ad7bfb6 100644
--- a/docs/open-api/models.yaml
+++ b/docs/open-api/models.yaml
@@ -439,12 +439,14 @@ components:
- $ref: "#/components/schemas/RenameModelRequest"
- $ref: "#/components/schemas/SetModelPropertyRequest"
- $ref: "#/components/schemas/RemoveModelPropertyRequest"
+ - $ref: "#/components/schemas/UpdateModelCommentRequest"
discriminator:
propertyName: "@type"
mapping:
rename: "#/components/schemas/RenameModelRequest"
setProperty: "#/components/schemas/SetModelPropertyRequest"
removeProperty: "#/components/schemas/RemoveModelPropertyRequest"
+ updateComment: "#/components/schemas/UpdateModelCommentRequest"
RenameModelRequest:
type: object
@@ -507,6 +509,24 @@ components:
"property": "key1"
}
+ UpdateModelCommentRequest:
+ type: object
+ required:
+ - "@type"
+ - newComment
+ properties:
+ "@type":
+ type: string
+ enum:
+ - "updateComment"
+ newComment:
+ type: string
+ description: The new comment of the model
+ example: {
+ "@type": "updateComment",
+ "newComment": "This is a new comment"
+ }
+
ModelVersionLinkRequest:
type: object
required: