{"action":"created","issue":{"url":"https://api.github.com/repos/json-schema/json-schema/issues/225","repository_url":"https://api.github.com/repos/json-schema/json-schema","labels_url":"https://api.github.com/repos/json-schema/json-schema/issues/225/labels{/name}","comments_url":"https://api.github.com/repos/json-schema/json-schema/issues/225/comments","events_url":"https://api.github.com/repos/json-schema/json-schema/issues/225/events","html_url":"https://github.com/json-schema/json-schema/issues/225","id":138272969,"number":225,"title":"strictProperties for date-time formatMinimum and formatMaximum","user":{"login":"MosleyWilliams","id":17504053,"avatar_url":"https://avatars.githubusercontent.com/u/17504053?v=3","gravatar_id":"","url":"https://api.github.com/users/MosleyWilliams","html_url":"https://github.com/MosleyWilliams","followers_url":"https://api.github.com/users/MosleyWilliams/followers","following_url":"https://api.github.com/users/MosleyWilliams/following{/other_user}","gists_url":"https://api.github.com/users/MosleyWilliams/gists{/gist_id}","starred_url":"https://api.github.com/users/MosleyWilliams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MosleyWilliams/subscriptions","organizations_url":"https://api.github.com/users/MosleyWilliams/orgs","repos_url":"https://api.github.com/users/MosleyWilliams/repos","events_url":"https://api.github.com/users/MosleyWilliams/events{/privacy}","received_events_url":"https://api.github.com/users/MosleyWilliams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-03-03T19:22:14Z","updated_at":"2016-03-03T22:17:27Z","closed_at":null,"body":"I'm having problems with Json Schema when I'm trying to validate date-time value between interval of time [2013-11-17T00:00Z, 2015-11-17T00:00Z] I have this Json Schema:\r\n\r\n```\r\n{\r\n  \"strictProperties\": true ,\r\n  \"type\": \"object\",\r\n  \"properties\": {\r\n    \"data\": {\r\n      \"type\": \"object\",\r\n      \"properties\": {\r\n        \"exampleDate\": {\r\n          \"format\": \"date-time\",\r\n          \"formatMinimum\": \"2013-11-17T00:00Z\",\r\n          \"formatMaximum\": \"2015-11-17T00:00Z\"\r\n        }\r\n      }\r\n    }\r\n  },\r\n  \"required\": [\r\n    \"data\"\r\n  ]\r\n}\r\n```\r\nAnd with this json always out is as valid json:\r\n\r\n```\r\n{\r\n    \"data\": {\r\n        \"exampleDate\": \"2010-11-17T00:00:00Z\"\r\n    }\r\n}\r\n```\r\nBut as you can see, this json is not valid because of the date, it is out of valid range.\r\n\r\nI've tested in online tools http://www.jsonschemavalidator.net/, http://jsonschemalint.com/draft4/# and with com.github.fge:json-schema-validator:2.2.6. Could someone help me please? Maybe I missing some configuration besides strictProperties? some step?. Thanks in advance =)"},"comment":{"url":"https://api.github.com/repos/json-schema/json-schema/issues/comments/191991573","html_url":"https://github.com/json-schema/json-schema/issues/225#issuecomment-191991573","issue_url":"https://api.github.com/repos/json-schema/json-schema/issues/225","id":191991573,"user":{"login":"jdesrosiers","id":716571,"avatar_url":"https://avatars.githubusercontent.com/u/716571?v=3","gravatar_id":"","url":"https://api.github.com/users/jdesrosiers","html_url":"https://github.com/jdesrosiers","followers_url":"https://api.github.com/users/jdesrosiers/followers","following_url":"https://api.github.com/users/jdesrosiers/following{/other_user}","gists_url":"https://api.github.com/users/jdesrosiers/gists{/gist_id}","starred_url":"https://api.github.com/users/jdesrosiers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jdesrosiers/subscriptions","organizations_url":"https://api.github.com/users/jdesrosiers/orgs","repos_url":"https://api.github.com/users/jdesrosiers/repos","events_url":"https://api.github.com/users/jdesrosiers/events{/privacy}","received_events_url":"https://api.github.com/users/jdesrosiers/received_events","type":"User","site_admin":false},"created_at":"2016-03-03T22:17:27Z","updated_at":"2016-03-03T22:17:27Z","body":"@MosleyWilliams, there is no v5 yet.  At this point there are a bunch of proposals, but no decisions about what will make the cut.  The latest draft of JSON Schema is not capable of what you are trying to do.  Specifically from your example: `strictProperties`, `formatMinimum`, and `formatMaximum` are not part of the JSON Schema spec.  They might be at some point in the future, but not yet.  There might be validators out that implement things like this, but I would guess that most will wait until the behavior is standardized."}}