Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix capitalized JSON fields in event payload #2735

Merged
merged 7 commits into from
Jul 27, 2023
Merged

Conversation

BugFreeSoftware
Copy link
Contributor

No description provided.

type EventJSON struct {
ContractID Hname `json:"contractID" swagger:"desc(ID of the Contract that issued the event),required,min(1)"`
Topic string `json:"topic" swagger:"desc(topic),required"`
Timestamp uint64 `json:"timestamp" swagger:"desc(timestamp),required"`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO you shouldn't use uint64 in json.
Maybe better convert it to string instead (thats what we do with uint64 values in the core API).

@BugFreeSoftware BugFreeSoftware changed the title Fix capitalized JSON fields in even payload Fix capitalized JSON fields in event payload Jul 21, 2023
@BugFreeSoftware BugFreeSoftware merged commit c88f0c5 into develop Jul 27, 2023
5 checks passed
@BugFreeSoftware BugFreeSoftware deleted the cleanup branch July 27, 2023 18:24
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.

2 participants