]> source.dussan.org Git - gitea.git/commit
fix swagger documentation for multiple files API endpoint (#25110) v1.20.0-rc0
authorDenys Konovalov <kontakt@denyskon.de>
Wed, 7 Jun 2023 15:49:58 +0000 (17:49 +0200)
committerGitHub <noreply@github.com>
Wed, 7 Jun 2023 15:49:58 +0000 (23:49 +0800)
commiteac1bddb8da2e26a3f6d6678b9888c65418cf318
tree7e004c97853bc03c780cdf511ff58ec58498d690
parent027014d7de19a566cde306c868a31895903d00d5
fix swagger documentation for multiple files API endpoint (#25110)

Fixes some issues with the swagger documentation for the new multiple
files API endpoint (#24887) which were overlooked when submitting the
original PR:

1. add some missing parameter descriptions
2. set correct `required` option for required parameters
3. change endpoint description to match it full functionality (every
kind of file modification is supported, not just creating and updating)
modules/structs/repo_file.go
routers/api/v1/repo/file.go
templates/swagger/v1_json.tmpl