{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/node-convict/issues/206","repository_url":"https://api.github.com/repos/mozilla/node-convict","labels_url":"https://api.github.com/repos/mozilla/node-convict/issues/206/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/node-convict/issues/206/comments","events_url":"https://api.github.com/repos/mozilla/node-convict/issues/206/events","html_url":"https://github.com/mozilla/node-convict/pull/206","id":232709508,"number":206,"title":"Rework validate() to check for overridden parent","user":{"login":"elyscape","id":792695,"avatar_url":"https://avatars2.githubusercontent.com/u/792695?v=4","gravatar_id":"","url":"https://api.github.com/users/elyscape","html_url":"https://github.com/elyscape","followers_url":"https://api.github.com/users/elyscape/followers","following_url":"https://api.github.com/users/elyscape/following{/other_user}","gists_url":"https://api.github.com/users/elyscape/gists{/gist_id}","starred_url":"https://api.github.com/users/elyscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyscape/subscriptions","organizations_url":"https://api.github.com/users/elyscape/orgs","repos_url":"https://api.github.com/users/elyscape/repos","events_url":"https://api.github.com/users/elyscape/events{/privacy}","received_events_url":"https://api.github.com/users/elyscape/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-05-31T21:59:42Z","updated_at":"2017-07-17T18:48:57Z","closed_at":"2017-06-13T19:40:10Z","pull_request":{"url":"https://api.github.com/repos/mozilla/node-convict/pulls/206","html_url":"https://github.com/mozilla/node-convict/pull/206","diff_url":"https://github.com/mozilla/node-convict/pull/206.diff","patch_url":"https://github.com/mozilla/node-convict/pull/206.patch"},"body":"Setting a field's parent to some value will cause any children to vanish.  Validation did not detect this because validation was driven by the config instance, rather than the schema. This reworks `validate()` to use the schema itself as a source. Additionally, it adds detection for that scenario.\r\n\r\nFixes #193."},"comment":{"url":"https://api.github.com/repos/mozilla/node-convict/issues/comments/315846299","html_url":"https://github.com/mozilla/node-convict/pull/206#issuecomment-315846299","issue_url":"https://api.github.com/repos/mozilla/node-convict/issues/206","id":315846299,"user":{"login":"elyscape","id":792695,"avatar_url":"https://avatars2.githubusercontent.com/u/792695?v=4","gravatar_id":"","url":"https://api.github.com/users/elyscape","html_url":"https://github.com/elyscape","followers_url":"https://api.github.com/users/elyscape/followers","following_url":"https://api.github.com/users/elyscape/following{/other_user}","gists_url":"https://api.github.com/users/elyscape/gists{/gist_id}","starred_url":"https://api.github.com/users/elyscape/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elyscape/subscriptions","organizations_url":"https://api.github.com/users/elyscape/orgs","repos_url":"https://api.github.com/users/elyscape/repos","events_url":"https://api.github.com/users/elyscape/events{/privacy}","received_events_url":"https://api.github.com/users/elyscape/received_events","type":"User","site_admin":false},"created_at":"2017-07-17T18:48:57Z","updated_at":"2017-07-17T18:48:57Z","body":"@farfromrefug Neither `null` nor `undefined` are objects. If you specify the format of `spotfile` as `Object`, it _must_ be an object when you call `validate()`. If you can't guarantee that it will always be set to an object before calling `validate()`, then you could deal with this either by setting the default value to the empty object (i.e. `{}`) or by changing the format to anything (i.e. `'*'`)."}}
{"actor":{"display_login":"elyscape"}}