-
Notifications
You must be signed in to change notification settings - Fork 196
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add serde support to document type. (#2616)
## Description Implements serde support for `Document`. ## Testing Test checks whether the serialized/de-serialized data matches with the expected value ---- _By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice._
- Loading branch information
1 parent
1e2c03c
commit 9d56db1
Showing
2 changed files
with
121 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
rust-runtime/aws-smithy-types/test_data/serialize_document.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
{ | ||
"null": null, | ||
"true": true, | ||
"pos_int": 1, | ||
"false": false, | ||
"map": { | ||
"array": [ | ||
{ | ||
"pos_int": 1, | ||
"float": 0.30000000000000004, | ||
"neg_int": -1, | ||
"hello": "world", | ||
"false": false, | ||
"true": true | ||
}, | ||
"hello-world", | ||
true, | ||
false | ||
], | ||
"pos_int": 1, | ||
"float": 0.30000000000000004, | ||
"neg_int": -1, | ||
"hello": "world", | ||
"false": false, | ||
"true": true | ||
}, | ||
"float": 0.30000000000000004, | ||
"neg_int": -1, | ||
"hello": "world", | ||
"array": [ | ||
{ | ||
"pos_int": 1, | ||
"float": 0.30000000000000004, | ||
"neg_int": -1, | ||
"hello": "world", | ||
"false": false, | ||
"true": true | ||
}, | ||
"hello-world", | ||
true, | ||
false | ||
] | ||
} |