Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
toml: fix toml encoding of complex types (#19408)
* Improve default toml encoder for complex types The default toml encoder failed for more complex structs, as certain edge cases were not covered. This commit attempts to fix this by adding additional handling for these edge cases. * Improve map encoding Since maps currently only support keys that have a string representation, we can utilize this during map encoding. * Add test cases for toml encoding Added test cases for toml encoding of complex nested structs and structs that contain maps. * Add additional test cases
- Loading branch information
Showing
2 changed files
with
86 additions
and
23 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
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