-
Notifications
You must be signed in to change notification settings - Fork 53
AdminCreateOrg json unmarshal error #40
Comments
FYI, the bug is located in https://github.com/go-gitea/go-sdk/blob/master/gitea/gitea.go#L76 . |
Thanks. Could you send a PR to fix that? |
Should this be corrected rather in go-sdk or in gitea API (https://github.com/go-gitea/gitea/blob/master/routers/api/v1/admin/org.go) ? |
Missed the array vs map part. We should check in SDK whether it's an array of errors or not :/ |
BTW for errors of kind 422 this PR fixes this issue #89 though there could be other 4XX errors that are returned we may want to do something similar. I wonder if we should return all other 4XX errors like the 422 error in this PR? |
Trying to use gitea go sdk (
import "code.gitea.io/sdk/gitea"
), theclient.AdminCreateOrg() function returns the following error
running with gitea server in docker :
2016 Gitea Version: 1.0.0+276-g9d2b8302
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: