-
Notifications
You must be signed in to change notification settings - Fork 65
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
convert from json to yaml have a bug #342
Comments
Thanks for bringing this up. I am somewhat suspecting the JSON to YAML conversation to misbehave. I am looking into it. In the meantime, if you know you feed the files into other tools later, consider using the |
Ref: homeport/dyff#342 Make sure to quote the dash in a string.
Ref: homeport/dyff#342 Make sure to quote the dash in a string.
Ref: #342 Make sure to quote if string is just a dash by updating the neat version.
To be honest, I am not seeing the problem in the content in the screenshot, but I took a guess and was able to get a similar error message when using a dash in a string through the conversion logic. That dash not being quoted is definitely a bug, I am just not sure if it is the same problem you are facing. Let me know if you still have the issue with a new version of |
Ref: #342 Make sure to quote if string is just a dash by updating the neat version.
Unfortunately, I forgot to attach Json's example file that led to the error, and I apologize for that. out.json:
There was a problem with quoting the |
I have 2
json
file (1.json
and2.json
)> ./dyff between 1.json 2.json
After I converted them to "yaml"; I execute the above command again for yamel files
My json file is correct, it parses with jq and can be properly converted to yaml by another tool
dyff
version :1.7.0
The text was updated successfully, but these errors were encountered: