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

[JsonFile] Bool型の取り扱いが分かりにくく、意図しない結果になることがある #2

Closed
mkht opened this issue Nov 8, 2018 · 0 comments

Comments

@mkht
Copy link
Owner

mkht commented Nov 8, 2018

Steps to reproduce

JsonFile Case1 {
    Path     = 'C:\Test.json'
    Key      = 'Key1'
    Value    = 'true'
}

JsonFile Case2 {
    Path     = 'C:\Test.json'
    Key      = 'Key2'
    Value    = 'True'
}

JsonFile Case3 {
    Path     = 'C:\Test.json'
    Key      = 'Key3'
    Value    = '"true"'
}

JsonFile Case4 {
    Path     = 'C:\Test.json'
    Key      = 'Key4'
    Value    = $true
}

JsonFile Case5 {
    Path     = 'C:\Test.json'
    Key      = 'Key4'
    Value    = '[true]'
}

Expected behavior

{
  "Key1": true,
  "Key2": true,
  "Key3": "true",
  "Key4": true
}

Actual behavior

{
  "Key1": true,
  "Key2": "True",
  "Key3": "true",
  "Key4": "True"
}
mkht referenced this issue Nov 8, 2018
…bool parsable to the Value parameter.

This is the BREAKING CHANGE
@mkht mkht closed this as completed Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant