Skip to content

Commit 194a128

Browse files
committed
fix json tags in process struct types
1 parent b83b0ff commit 194a128

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

process.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,20 @@ type ProcessAction struct {
3333

3434
// ProcessAssignee represents a ProcessState assignee
3535
type ProcessAssignee struct {
36-
Type string `json:type`
37-
Entities []*ProcessEntity `json:entities`
36+
Type string `json:"type"`
37+
Entities []*ProcessEntity `json:"entities"`
3838
}
3939

4040
// ProcessEntity represents a process assignee entity
4141
type ProcessEntity struct {
42-
Entity *Entity `json:entity`
43-
IncludeSubs bool `json:includeSubs`
42+
Entity *Entity `json:"entity"`
43+
IncludeSubs bool `json:"includeSubs"`
4444
}
4545

4646
// Entity is the concrete representation of a process entity
4747
type Entity struct {
48-
Type string `json:type`
49-
Code string `json:code`
48+
Type string `json:"type"`
49+
Code string `json:"code"`
5050
}
5151

5252
func DecodeProcess(b []byte) (p *Process, err error) {

0 commit comments

Comments
 (0)