mirror of
https://github.com/go-gitea/gitea.git
synced 2026-11-05 00:09:33 +09:00
fix(api): keep wiki page name when editing with an empty title (#40153)
Match `PATCH /repos/{owner}/{repo}/wiki/page/{pageName}` document "leave
empty to keep unchanged"
Fixes #39179
---------
Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
1 parent
5c68ba3e0a
commit
f26a314636
3 files changed
+28
-12
No files matched your search
@@ -43,7 +43,7 @@ type WikiPageMetaData struct {
|
||||
// CreateWikiPageOptions form for creating wiki
|
||||
type CreateWikiPageOptions struct {
|
||||
// page title. leave empty to keep unchanged
|
||||
Title string `json:"title" binding:"TrimSpace;Required"`
|
||||
Title string `json:"title" binding:"TrimSpace"`
|
||||
// content must be base64 encoded
|
||||
ContentBase64 string `json:"content_base64"`
|
||||
// optional commit message summarizing the change
|
||||
|
||||
Reference in new issue
Block a user