Skip to content

/repos/xxx/hooks binding check error #36

Open
@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

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions