From 7b6ceaaad2260445d489b6dab7f829bb0436c94b Mon Sep 17 00:00:00 2001 From: Noah Metz Date: Mon, 26 Jun 2023 23:20:12 -0600 Subject: [PATCH] Removed _state from json attributes --- lockable.go | 2 +- thread.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lockable.go b/lockable.go index 235fbbf..806544a 100644 --- a/lockable.go +++ b/lockable.go @@ -69,7 +69,7 @@ type BaseLockableStateJSON struct { Owner *NodeID `json:"owner"` Dependencies []NodeID `json:"dependencies"` Requirements []NodeID `json:"requirements"` - HolderState *BaseLockHolderState `json:"holder_state"` + HolderState *BaseLockHolderState `json:"holder"` } func (state * BaseLockableState) MarshalJSON() ([]byte, error) { diff --git a/thread.go b/thread.go index 96d82e1..03ced49 100644 --- a/thread.go +++ b/thread.go @@ -73,7 +73,7 @@ type BaseThreadState struct { type BaseThreadStateJSON struct { Parent *NodeID `json:"parent"` Children map[NodeID]interface{} `json:"children"` - LockableState *BaseLockableState `json:"lockable_state"` + LockableState *BaseLockableState `json:"lockable"` } func (state * BaseThreadState) MarshalJSON() ([]byte, error) {