Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"date-time" format is not validated #48

Open
davepacheco opened this issue Mar 18, 2014 · 0 comments
Open

"date-time" format is not validated #48

davepacheco opened this issue Mar 18, 2014 · 0 comments

Comments

@davepacheco
Copy link

Here's a test program:

/*
 * test case for json-schema validation issue with date-time formats
 */

var jsonschema = require('json-schema');
var schema = {
    'type': 'string',
    'format': 'date-time'
};

console.log(jsonschema.validate('asdf', schema));

Here's the output on my system:

dap@sharptooth jst $ uname -a
Darwin sharptooth.local 12.5.0 Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64 x86_64
dap@sharptooth jst $ node -v
v0.10.18
dap@sharptooth jst $ npm ls
/Users/dap/Desktop/jst
└── json-schema@0.2.2

dap@sharptooth jst $ node issue-datetime.js 
{ valid: true, errors: [] }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant