Skip to content

Conversation

hwrdtm
Copy link
Contributor

@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.

3 participants