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 7556
7556
},
7557
7557
"x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
7558
7558
},
7559
+ "Hook": {
7560
+ "description": "Hook a hook is a web hook when one repository changed",
7561
+ "type": "object",
7562
+ "properties": {
7563
+ "active": {
7564
+ "type": "boolean",
7565
+ "x-go-name": "Active"
7566
+ },
7567
+ "config": {
7568
+ "type": "object",
7569
+ "additionalProperties": {
7570
+ "type": "string"
7571
+ },
7572
+ "x-go-name": "Config"
7573
+ },
7574
+ "created_at": {
7575
+ "type": "string",
7576
+ "format": "date-time",
7577
+ "x-go-name": "Created"
7578
+ },
7579
+ "events": {
7580
+ "type": "array",
7581
+ "items": {
7582
+ "type": "string"
7583
+ },
7584
+ "x-go-name": "Events"
7585
+ },
7586
+ "id": {
7587
+ "type": "integer",
7588
+ "format": "int64",
7589
+ "x-go-name": "ID"
7590
+ },
7591
+ "type": {
7592
+ "type": "string",
7593
+ "x-go-name": "Type"
7594
+ },
7595
+ "updated_at": {
7596
+ "type": "string",
7597
+ "format": "date-time",
7598
+ "x-go-name": "Updated"
7599
+ }
7600
+ },
7601
+ "x-go-package": "code.gitea.io/gitea/vendor/code.gitea.io/sdk/gitea"
7602
+ },
7559
7603
"Issue": {
7560
7604
"description": "Issue represents an issue in a repository",
7561
7605
"type": "object",
8824
8868
"Hook": {
8825
8869
"description": "Hook",
8826
8870
"schema": {
8827
- "type": "array",
8828
- "items": {
8829
- "$ref": "#/definitions/Branch"
8830
- }
8871
+ "$ref": "#/definitions/Hook"
8831
8872
}
8832
8873
},
8833
8874
"HookList": {
8834
8875
"description": "HookList",
8835
8876
"schema": {
8836
8877
"type": "array",
8837
8878
"items": {
8838
- "$ref": "#/definitions/Branch "
8879
+ "$ref": "#/definitions/Hook "
8839
8880
}
8840
8881
}
8841
8882
},
You can’t perform that action at this time.
0 commit comments