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

Implement serde test #1860

Closed
wants to merge 1 commit into from
Closed

Conversation

hwrdtm
Copy link

@hwrdtm hwrdtm commented Jun 4, 2024

Related to #1856

Changes

This PR:

  • Implements test for deserializing + serializing

Merge requirement checklist

  • CONTRIBUTING guidelines followed
  • Unit tests added/updated (if applicable)
  • Appropriate CHANGELOG.md files updated for non-trivial, user-facing changes
  • Changes in public API reviewed (if applicable)

Testing

Run new test with cargo test --workspace --all-features --test traces 'test_serde' -- --nocapture

@hwrdtm hwrdtm mentioned this pull request Jun 4, 2024
4 tasks
"attributes": [
{
"key": "bogons",
"value": "100"
Copy link
Contributor

@ramgdev ramgdev Jun 4, 2024

Choose a reason for hiding this comment

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

The string value here should use Value::String during serialization instead of plain string for attributes. When a number is preferred on deserialization, then it should be serialized as Value::I64.

@lalitb
Copy link
Member

lalitb commented Jun 18, 2024

fix incorporated in #1882.

@lalitb lalitb closed this Jun 18, 2024
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.

None yet

3 participants