-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
YAML vs TOML recorder format #615
Comments
I'm going to remove the Untriaged label here since it doesn't seem actionable immediately. Also, seems like @beliaev-maksim is a pretty big contributor here. |
Having the dumper be swappable makes sense to me. Should we be clever and have a mapping of file extensions to dump loaders? This would let userland code continue to use toml if they have those files and switching to yaml is as simple as changing the file extension for their dump files. |
@markstory Otherwise, I am afraid, we might go on a slippery way. |
Ok. I was thinking that the map would only contain toml and yaml. Any additional formats would need to be registered/added by userland code. I agree that we don't want to support all the formats possible as that would be too many dependencies. |
I'm biased, I like yaml a lot more than toml, and not just because bugs like this make toml unwieldy. Still alternative serializers seem like great idea to me. |
considering expansion of recorder to include matchers (I am currently working on it) I would like to reopen the discussion about recorded format
initially in #545 implementation was done via yaml. However, following thread in #545 (comment) we decided to go for TOML.
I would like to understand where we will face these issues with ambiguity in YAML.
The reason is following, TOML becomes completely unreadable for nested structures, compare YAML output below to following TOML.
@markstory
my proposal, make dumper exposed in user interface, allowing to switch between JSON/YAML/TOML/etc (considering that our data is serializable, and we use only built-in types: Dict, List, Str, Bool, Int, so, we should be serializable)
and we switch default output to YAML
The text was updated successfully, but these errors were encountered: