Skip to content
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

plain format makes hollow line with some files (examples inside) #1

Open
sirflyingv opened this issue Feb 15, 2023 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@sirflyingv
Copy link
Owner

sirflyingv commented Feb 15, 2023

file1.json:

{
  "host": "hexlet.io",
  "timeout": 50,
  "proxy": "123.234.53.22",
  "follow": false,
  "here": {
  	"hola": 123
  },
  "pers": {
  	"hmm": 111,
  	"ooh": 322
  }
}

file2.json

{
  "timeout": 20,
  "verbose": true,
  "host": "hexlet.io",
  "nestnew": {
  	"kappa": 12
  },
    "pers": {
  	"hmm": 111,
  	"ooh": 322
  }
}

behavior:

boris@doge:~/study/test_data$ gendiff -f plain file1.json file2.json
Property 'follow' was removed
Property 'here' was removed
Property 'nestnew' was added with value: [complex value]

Property 'proxy' was removed
Property 'timeout' was updated. From 50 to 20
Property 'verbose' was added with value: true
@sirflyingv sirflyingv added the bug Something isn't working label Feb 15, 2023
@sirflyingv sirflyingv self-assigned this Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant