{"action":"closed","issue":{"url":"https://api.github.com/repos/automategreen/dynamoose/issues/83","repository_url":"https://api.github.com/repos/automategreen/dynamoose","labels_url":"https://api.github.com/repos/automategreen/dynamoose/issues/83/labels{/name}","comments_url":"https://api.github.com/repos/automategreen/dynamoose/issues/83/comments","events_url":"https://api.github.com/repos/automategreen/dynamoose/issues/83/events","html_url":"https://github.com/automategreen/dynamoose/issues/83","id":192783481,"number":83,"title":"Boolean field default value","user":{"login":"JohanWillfred","id":11837719,"avatar_url":"https://avatars.githubusercontent.com/u/11837719?v=3","gravatar_id":"","url":"https://api.github.com/users/JohanWillfred","html_url":"https://github.com/JohanWillfred","followers_url":"https://api.github.com/users/JohanWillfred/followers","following_url":"https://api.github.com/users/JohanWillfred/following{/other_user}","gists_url":"https://api.github.com/users/JohanWillfred/gists{/gist_id}","starred_url":"https://api.github.com/users/JohanWillfred/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohanWillfred/subscriptions","organizations_url":"https://api.github.com/users/JohanWillfred/orgs","repos_url":"https://api.github.com/users/JohanWillfred/repos","events_url":"https://api.github.com/users/JohanWillfred/events{/privacy}","received_events_url":"https://api.github.com/users/JohanWillfred/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-01T08:35:48Z","updated_at":"2016-12-31T14:21:33Z","closed_at":"2016-12-31T14:21:33Z","body":"I have a schema like this \r\n`new Schema({\r\n        id: {\r\n            type: String,\r\n            hashKey: true\r\n        },\r\n        code: {\r\n            type: String,\r\n            trim: true,\r\n            required: true\r\n        },\r\n        currency: {\r\n            type: String,\r\n            trim: true\r\n        },\r\n        deleted: {\r\n            type: Boolean,\r\n            default: false\r\n        }\r\n    },\r\n    {\r\n        throughput: {read: 5, write: 5}\r\n    })`\r\n\r\nInserted objects will have string type for field \"deleted\" (not boolean) is it correct schema behavior ?\r\n`{\r\n  \"code\": \"QWERTY_1\",\r\n  \"currency\": \"USD\",\r\n  \"deleted\": \"false\",\r\n  \"id\": \"89e0c249dec26924386d19f0188fb25f87e4b0eb\"\r\n}`"}}
{"actor":{"display_login":"brandongoode"}}