feat: add json tags to config structs

This commit is contained in:
Prad Nukala
2024-10-07 10:49:25 -04:00
parent 6fc52fd62d
commit dba9a119ef
5 changed files with 23 additions and 23 deletions
+8 -8
View File
@@ -4,19 +4,19 @@ package dwn
type Schema struct {
Version int `pkl:"version"`
Account string `pkl:"account"`
Account string `pkl:"account" json:"account,omitempty"`
Asset string `pkl:"asset"`
Asset string `pkl:"asset" json:"asset,omitempty"`
Chain string `pkl:"chain"`
Chain string `pkl:"chain" json:"chain,omitempty"`
Credential string `pkl:"credential"`
Credential string `pkl:"credential" json:"credential,omitempty"`
Jwk string `pkl:"jwk"`
Jwk string `pkl:"jwk" json:"jwk,omitempty"`
Grant string `pkl:"grant"`
Grant string `pkl:"grant" json:"grant,omitempty"`
Keyshare string `pkl:"keyshare"`
Keyshare string `pkl:"keyshare" json:"keyshare,omitempty"`
Profile string `pkl:"profile"`
Profile string `pkl:"profile" json:"profile,omitempty"`
}