Skip to content

Use requestedAmount JSON tag for order messages#443

Open
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:issue-requested-amount-json-tags
Open

Use requestedAmount JSON tag for order messages#443
giwaov wants to merge 1 commit into
canopy-network:mainfrom
giwaov:issue-requested-amount-json-tags

Conversation

@giwaov

@giwaov giwaov commented Jun 28, 2026

Copy link
Copy Markdown

Summary

  • Correct the MessageCreateOrder RequestedAmount JSON gotag from requestAmount to requestedAmount.
  • Correct the MessageDexLimitOrder RequestedAmount JSON gotag to the same requestedAmount spelling.
  • Keep the checked-in generated Go tags aligned with the proto annotations.

Why

The rest of the order message JSON surface uses requestedAmount. These two proto gotags used requestAmount, which made the generated struct tags inconsistent with the documented/API spelling.

Addresses part of #167.

Testing

  • git diff --check
  • Verified no requestAmount JSON gotags remain in lib/.proto/message.proto or fsm/message.pb.go
  • Not run: Go toolchain/proto generator is not installed in this environment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant