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

Boolean field false is omitted #641

Open
edgar86cru opened this issue Jan 18, 2020 · 3 comments
Open

Boolean field false is omitted #641

edgar86cru opened this issue Jan 18, 2020 · 3 comments

Comments

@edgar86cru
Copy link

When I pass this body in the url v1/commands

    body: JSON.stringify({
      udid: tokens[0],
      request_type: "Settings",
      settings: [{
        "item": "Bluetooth",
        "enabled": false
      }]
    })

In the plist result the field Enabled is omitted, it works when the value is true.

I think the problem is in the library github.com/groob/plist at this line:
https://github.com/groob/plist/blob/a99fbe489d03c90cfeff2db2643d13916e9a3898/encode.go#L129

Thank you in advance

@edgar86cru
Copy link
Author

edgar86cru commented Jan 30, 2020

Some update about this issue??

@rkoshti
Copy link

rkoshti commented Jan 30, 2020

i have faced the same error for false value

@jbpin
Copy link

jbpin commented Sep 15, 2020

Do you have any update on this one? Can someone validate this issue is fixed?

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

3 participants