Removed _state from json attributes

graph-rework-2
noah metz 2023-06-26 23:20:12 -06:00
parent 1ce98e2719
commit 7b6ceaaad2
2 changed files with 2 additions and 2 deletions

@ -69,7 +69,7 @@ type BaseLockableStateJSON struct {
Owner *NodeID `json:"owner"` Owner *NodeID `json:"owner"`
Dependencies []NodeID `json:"dependencies"` Dependencies []NodeID `json:"dependencies"`
Requirements []NodeID `json:"requirements"` Requirements []NodeID `json:"requirements"`
HolderState *BaseLockHolderState `json:"holder_state"` HolderState *BaseLockHolderState `json:"holder"`
} }
func (state * BaseLockableState) MarshalJSON() ([]byte, error) { func (state * BaseLockableState) MarshalJSON() ([]byte, error) {

@ -73,7 +73,7 @@ type BaseThreadState struct {
type BaseThreadStateJSON struct { type BaseThreadStateJSON struct {
Parent *NodeID `json:"parent"` Parent *NodeID `json:"parent"`
Children map[NodeID]interface{} `json:"children"` Children map[NodeID]interface{} `json:"children"`
LockableState *BaseLockableState `json:"lockable_state"` LockableState *BaseLockableState `json:"lockable"`
} }
func (state * BaseThreadState) MarshalJSON() ([]byte, error) { func (state * BaseThreadState) MarshalJSON() ([]byte, error) {