File tree Expand file tree Collapse file tree 2 files changed +48
-7
lines changed Expand file tree Collapse file tree 2 files changed +48
-7
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,14 @@ type swaggerResponseReferenceList struct {
61
61
// swagger:response Hook
62
62
type swaggerResponseHook struct {
63
63
// in:body
64
- Body [] api.Branch `json:"body"`
64
+ Body api.Hook `json:"body"`
65
65
}
66
66
67
67
// HookList
68
68
// swagger:response HookList
69
69
type swaggerResponseHookList struct {
70
70
// in:body
71
- Body []api.Branch `json:"body"`
71
+ Body []api.Hook `json:"body"`
72
72
}
73
73
74
74
// Release
Original file line number Diff line number Diff line change 7557
7557
},
7558
7558
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
7559
7559
},
7560
+ "Hook": {
7561
+ "description": "Hook a hook is a web hook when one repository changed",
7562
+ "type": "object",
7563
+ "properties": {
7564
+ "active": {
7565
+ "type": "boolean",
7566
+ "x-go-name": "Active"
7567
+ },
7568
+ "config": {
7569
+ "type": "object",
7570
+ "additionalProperties": {
7571
+ "type": "string"
7572
+ },
7573
+ "x-go-name": "Config"
7574
+ },
7575
+ "created_at": {
7576
+ "type": "string",
7577
+ "format": "date-time",
7578
+ "x-go-name": "Created"
7579
+ },
7580
+ "events": {
7581
+ "type": "array",
7582
+ "items": {
7583
+ "type": "string"
7584
+ },
7585
+ "x-go-name": "Events"
7586
+ },
7587
+ "id": {
7588
+ "type": "integer",
7589
+ "format": "int64",
7590
+ "x-go-name": "ID"
7591
+ },
7592
+ "type": {
7593
+ "type": "string",
7594
+ "x-go-name": "Type"
7595
+ },
7596
+ "updated_at": {
7597
+ "type": "string",
7598
+ "format": "date-time",
7599
+ "x-go-name": "Updated"
7600
+ }
7601
+ },
7602
+ "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
7603
+ },
7560
7604
"Issue": {
7561
7605
"description": "Issue represents an issue in a repository",
7562
7606
"type": "object",
8825
8869
"Hook": {
8826
8870
"description": "Hook",
8827
8871
"schema": {
8828
- "type": "array",
8829
- "items": {
8830
- "$ref": "#/definitions/Branch"
8831
- }
8872
+ "$ref": "#/definitions/Hook"
8832
8873
}
8833
8874
},
8834
8875
"HookList": {
8835
8876
"description": "HookList",
8836
8877
"schema": {
8837
8878
"type": "array",
8838
8879
"items": {
8839
- "$ref": "#/definitions/Branch "
8880
+ "$ref": "#/definitions/Hook "
8840
8881
}
8841
8882
}
8842
8883
},
You can’t perform that action at this time.
0 commit comments