{"action":"closed","issue":{"url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/580","labels_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/580/labels{/name}","comments_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/580/comments","events_url":"https://api.github.com/repos/swagger-api/swagger-editor/issues/580/events","html_url":"https://github.com/swagger-api/swagger-editor/issues/580","id":98852814,"number":580,"title":"`required` property does not work for boolean values","user":{"login":"davisford","id":186677,"avatar_url":"https://avatars.githubusercontent.com/u/186677?v=3","gravatar_id":"","url":"https://api.github.com/users/davisford","html_url":"https://github.com/davisford","followers_url":"https://api.github.com/users/davisford/followers","following_url":"https://api.github.com/users/davisford/following{/other_user}","gists_url":"https://api.github.com/users/davisford/gists{/gist_id}","starred_url":"https://api.github.com/users/davisford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davisford/subscriptions","organizations_url":"https://api.github.com/users/davisford/orgs","repos_url":"https://api.github.com/users/davisford/repos","events_url":"https://api.github.com/users/davisford/events{/privacy}","received_events_url":"https://api.github.com/users/davisford/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-03T22:49:35Z","updated_at":"2015-08-04T01:54:47Z","closed_at":"2015-08-04T01:54:47Z","body":"If you have a property in a model definition like: \r\n\r\n```yaml\r\nFoo:\r\n  required:\r\n    - disabled\r\n  properties:\r\n    disabled:\r\n      type: boolean\r\n```\r\n\r\nAnd you try to post it in the body of the JSON, the UI will allow you to toggle it to true, and it will send it.  But if you toggle it to false, it deletes the property altogether (assuming because it is falsey).  However, one still needs to be able to send boolean values that are false (e.g. to toggle a switch from on to off)"}}