1

Closed

Schema validation format

description

Hello,
It looks like the JObject validation (JObject.IsValid) is ignoring the format (http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23) information. For example, the following object:

{ 'Age': 23, 'DOB': '1sdfs' }

Is considered valid by the following schema

{
"type": "object",
"properties": {
"Age": {
  "required": true,
  "type": "integer"
},
"DOB": {
  "required": true,
  "type": "string",
  "format": "date-time"
}
}
}

How can I make sure the format is actually not ignored?

Thanks,
Pedro
Closed Jan 30, 2013 at 10:20 AM by JamesNK

comments

JamesNK wrote Jan 22, 2013 at 7:37 AM

Right now it isn't supported. It will be sometime in the future.

MsdnDev wrote Jan 22, 2013 at 4:29 PM

Thank you James.