{"action":"created","issue":{"url":"https://api.github.com/repos/keleshev/schema/issues/101","repository_url":"https://api.github.com/repos/keleshev/schema","labels_url":"https://api.github.com/repos/keleshev/schema/issues/101/labels{/name}","comments_url":"https://api.github.com/repos/keleshev/schema/issues/101/comments","events_url":"https://api.github.com/repos/keleshev/schema/issues/101/events","html_url":"https://github.com/keleshev/schema/pull/101","id":133289596,"number":101,"title":"add strict flag in Schema class to skip wrong key validation without wildcard","user":{"login":"drgarcia1986","id":5291018,"avatar_url":"https://avatars.githubusercontent.com/u/5291018?v=3","gravatar_id":"","url":"https://api.github.com/users/drgarcia1986","html_url":"https://github.com/drgarcia1986","followers_url":"https://api.github.com/users/drgarcia1986/followers","following_url":"https://api.github.com/users/drgarcia1986/following{/other_user}","gists_url":"https://api.github.com/users/drgarcia1986/gists{/gist_id}","starred_url":"https://api.github.com/users/drgarcia1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drgarcia1986/subscriptions","organizations_url":"https://api.github.com/users/drgarcia1986/orgs","repos_url":"https://api.github.com/users/drgarcia1986/repos","events_url":"https://api.github.com/users/drgarcia1986/events{/privacy}","received_events_url":"https://api.github.com/users/drgarcia1986/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-02-12T16:51:28Z","updated_at":"2016-02-12T17:45:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/keleshev/schema/pulls/101","html_url":"https://github.com/keleshev/schema/pull/101","diff_url":"https://github.com/keleshev/schema/pull/101.diff","patch_url":"https://github.com/keleshev/schema/pull/101.patch"},"body":"To avoid `SchemaError` for validations with more keys of the schema:\r\n\r\n```python\r\n>>> Schema({'key', 'value'}, strict=False).validate({'key', 'value', 'foo': 'bar})\r\n>>> {'key', 'value'}\r\n```"},"comment":{"url":"https://api.github.com/repos/keleshev/schema/issues/comments/183426868","html_url":"https://github.com/keleshev/schema/pull/101#issuecomment-183426868","issue_url":"https://api.github.com/repos/keleshev/schema/issues/101","id":183426868,"user":{"login":"skorokithakis","id":23648,"avatar_url":"https://avatars.githubusercontent.com/u/23648?v=3","gravatar_id":"","url":"https://api.github.com/users/skorokithakis","html_url":"https://github.com/skorokithakis","followers_url":"https://api.github.com/users/skorokithakis/followers","following_url":"https://api.github.com/users/skorokithakis/following{/other_user}","gists_url":"https://api.github.com/users/skorokithakis/gists{/gist_id}","starred_url":"https://api.github.com/users/skorokithakis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skorokithakis/subscriptions","organizations_url":"https://api.github.com/users/skorokithakis/orgs","repos_url":"https://api.github.com/users/skorokithakis/repos","events_url":"https://api.github.com/users/skorokithakis/events{/privacy}","received_events_url":"https://api.github.com/users/skorokithakis/received_events","type":"User","site_admin":false},"created_at":"2016-02-12T17:45:46Z","updated_at":"2016-02-12T17:45:46Z","body":"I have a small objection about the API. I currently do:\r\n\r\n~~~\r\nSchema({'key', 'value', object: object}, strict=False).validate({'key', 'value', 'foo': 'bar})\r\n~~~\r\n\r\nas a catch-all, which is explicit about the fact that the resulting structure will include those keys. What worries me about `strict=False` is that the keys are omitted, although it may be a good addition to the above alternative, as you may not want the keys back but not want validation to fail either."}}