forgejo/templates/swagger
Kemal Zebari 9cd0441cd3
Catch and handle unallowed file type errors in issue attachment API (#30791)
Before, we would just throw 500 if a user passes an attachment that is
not an allowed type. This commit catches this error and throws a 422
instead since this should be considered a validation error.

(cherry picked from commit 872caa17c0a30d95f85ab75c068d606e07bd10b3)

Conflicts:
	tests/integration/api_comment_attachment_test.go
	tests/integration/api_issue_attachment_test.go
	trivial context conflict because of 'allow setting the update date on issues and comments'
2024-05-05 12:15:40 +01:00
..
forgejo-ui.tmpl [API] Forgejo API /api/forgejo/v1 2024-02-05 14:44:32 +01:00
ui.tmpl [BRANDING] Replace branding in Swagger 2024-02-05 16:02:14 +01:00
v1_json.tmpl Catch and handle unallowed file type errors in issue attachment API (#30791) 2024-05-05 12:15:40 +01:00