-
Notifications
You must be signed in to change notification settings - Fork 250
/
types.go
44 lines (39 loc) · 1.05 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// This source code file is AUTO-GENERATED by github.com/taskcluster/jsonschema2go
package tchooksevents
import (
"encoding/json"
"errors"
)
type (
// Message reporting that a hook has changed
//
// Defined properties:
//
// struct {
//
// // `hookGroupId` of the hook that was changed
// //
// // HookGroupID string `json:"hookGroupId"`
//
// // `hookId` of the hook that was changed
// //
// // HookID string `json:"hookId"`
// }
//
// Additional properties allowed
HookChangedMessage json.RawMessage
)
// MarshalJSON calls json.RawMessage method of the same name. Required since
// HookChangedMessage is of type json.RawMessage...
func (this *HookChangedMessage) MarshalJSON() ([]byte, error) {
x := json.RawMessage(*this)
return (&x).MarshalJSON()
}
// UnmarshalJSON is a copy of the json.RawMessage implementation.
func (this *HookChangedMessage) UnmarshalJSON(data []byte) error {
if this == nil {
return errors.New("HookChangedMessage: UnmarshalJSON on nil pointer")
}
*this = append((*this)[0:0], data...)
return nil
}