Skip to content
This repository was archived by the owner on Feb 7, 2026. It is now read-only.
This repository was archived by the owner on Feb 7, 2026. It is now read-only.

/repos/xxx/hooks binding check error #36

@actor168

Description

@actor168

gogs version: 0.14.0+dev

when calling with

curl -X POST -H "Content-Type: application/json" -d @test.json http://xxx/api/v1/repos/xxx/test/hooks?token=xxx

while test.json :

{
  "type": "gogs",
  "config": {
    "content_type": "json",
    "url": "http://xxx/hook"
  },
  "events": [
    "push"
  ],
  "active": true
}

it responses:

[
  {
    "fieldNames": [
      "Type"
    ],
    "classification": "RequiredError",
    "message": "Required"
  },
  {
    "fieldNames": [
      "Config"
    ],
    "classification": "RequiredError",
    "message": "Required"
  }
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions