This is an automated email from the ASF dual-hosted git repository.

jshao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/gravitino.git


The following commit(s) were added to refs/heads/main by this push:
     new eb7dfa0809 [MINOR] docs(docs): Update models.yaml (#7049)
eb7dfa0809 is described below

commit eb7dfa0809a153811886074bd42ddef3c00de628
Author: Lord of Abyss <[email protected]>
AuthorDate: Wed Apr 23 14:50:12 2025 +0800

    [MINOR] docs(docs): Update models.yaml (#7049)
    
    ### 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.
---
 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:

Reply via email to