From 2f6ba028cf0787ca00a62f673dbc61aa8d61b8ed Mon Sep 17 00:00:00 2001 From: tbphp Date: Wed, 15 Oct 2025 14:17:58 +0800 Subject: [PATCH] fix: Clear key notes (#321) --- internal/handler/key_handler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/handler/key_handler.go b/internal/handler/key_handler.go index 3f04afcd..6f683d42 100644 --- a/internal/handler/key_handler.go +++ b/internal/handler/key_handler.go @@ -443,7 +443,7 @@ func (s *Server) ExportKeys(c *gin.Context) { // UpdateKeyNotesRequest defines the payload for updating a key's notes. type UpdateKeyNotesRequest struct { - Notes string `json:"notes" binding:"required"` + Notes string `json:"notes"` } // UpdateKeyNotes handles updating the notes of a specific API key.