mirror of
https://github.com/tendermint/tendermint.git
synced 2026-07-19 14:32:21 +00:00
Intermediate... working on debora
This commit is contained in:
+3
-1
@@ -178,7 +178,9 @@ func RegisterType(info *TypeInfo) *TypeInfo {
|
||||
continue
|
||||
}
|
||||
jsonName := field.Tag.Get("json")
|
||||
if jsonName == "" {
|
||||
if jsonName == "-" {
|
||||
continue
|
||||
} else if jsonName == "" {
|
||||
jsonName = field.Name
|
||||
}
|
||||
structFields = append(structFields, StructFieldInfo{
|
||||
|
||||
Reference in New Issue
Block a user