mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-01 01:20:17 +00:00
f0a95eebe3
The api specs were Go templates whose committed form was not a valid swagger document, so `swagger-validate`, `generate-openapi.go` and `.spectral.yaml` each worked around it. They are now plain json, substituted at serve time. Renaming them off `.tmpl` also stops `make fmt` rewriting them, which used to bump their mtime and silently skip the next `make generate-swagger`. Also enables stricter spectral linting: extends `lint-swagger` to the OpenAPI 3 spec, turns on `openapi-tags`, `operation-singular-tag` and `operation-tag-defined`, adds a top-level `tags` array with descriptions to the swagger input, and drops the redundant `repository` tag from `POST /user/repos`. --------- Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: Giteabot <teabot@gitea.io>
37 lines
667 B
INI
37 lines
667 B
INI
root = true
|
|
|
|
[*]
|
|
indent_style = space
|
|
indent_size = 2
|
|
tab_width = 2
|
|
end_of_line = lf
|
|
charset = utf-8
|
|
trim_trailing_whitespace = true
|
|
insert_final_newline = true
|
|
|
|
[*.{go,tmpl,html}]
|
|
indent_style = tab
|
|
|
|
[go.*]
|
|
indent_style = tab
|
|
|
|
[templates/custom/*.tmpl]
|
|
insert_final_newline = false
|
|
|
|
[templates/swagger/*.generated.json]
|
|
indent_style = space
|
|
insert_final_newline = false
|
|
|
|
[templates/user/auth/oidc_wellknown.tmpl]
|
|
indent_style = space
|
|
|
|
[templates/shared/actions/runner_badge_*.tmpl]
|
|
# editconfig lint requires these XML-like files to have charset defined, but the files don't have.
|
|
charset = unset
|
|
|
|
[Makefile]
|
|
indent_style = tab
|
|
|
|
[*.svg]
|
|
insert_final_newline = false
|