Conversation
Codecov Report
@@ Coverage Diff @@
## main #1126 +/- ##
=======================================
Coverage 43.82% 43.82%
=======================================
Files 65 65
Lines 8393 8393
=======================================
Hits 3678 3678
Misses 4472 4472
Partials 243 243
|
|
We might also be able to change the On the other hand, this json tag has the lowest impact on anything else so might be better. Anyone else have thoughts on the best approach? |
| (gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Dec", | ||
| (gogoproto.nullable) = false | ||
| (gogoproto.nullable) = false, | ||
| (gogoproto.jsontag) = "apy" |
There was a problem hiding this comment.
is this a standard practice? I think APY looks more correct to me, even for JSON. But I don't have a strong opinion for this.
There was a problem hiding this comment.
The official standard for JSON is actually camelCase but we have everything as snack_case '-'
There was a problem hiding this comment.
Twitter and Facebook API's use snake_case while Microsoft and Google use camelCase.
Following this approach that @robert-zaremba shared probably it is to be called APY on the go side, but in my opinion, being the first property name as acronyms I vote for keeping |
|
I'm leaning toward what you currently have in the PR - only changing the json tag at the moment. |
Description
closes: #XXXX
Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...
!to the type prefix if API or client breaking changeCHANGELOG.mdReviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...