forked from kevadesu/forgejo
[CHORE] Use forked binding
library
- Use the forked [binding](https://code.forgejo.org/go-chi/binding) library. This library has two benefits, it removes the usage of `github.com/goccy/go-json` (has no benefit as the minimo library is also using it). It adds the `TrimSpace` feature, which will during the binding part trim the spaces around the value it got from the form, this is done before validation.
This commit is contained in:
parent
25c7c531f5
commit
310376525b
30 changed files with 35 additions and 35 deletions
|
@ -103,7 +103,7 @@ import (
|
|||
|
||||
_ "code.gitea.io/gitea/routers/api/v1/swagger" // for swagger generation
|
||||
|
||||
"gitea.com/go-chi/binding"
|
||||
"code.forgejo.org/go-chi/binding"
|
||||
)
|
||||
|
||||
func sudo() func(ctx *context.APIContext) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue