diff --git a/.gitignore b/.gitignore index 68bc17f9..08565a33 100644 --- a/.gitignore +++ b/.gitignore @@ -158,3 +158,4 @@ cython_debug/ # and can be added to the global gitignore or merged into this file. For a more nuclear # option (not recommended) you can uncomment the following to ignore the entire idea folder. #.idea/ +sandbox \ No newline at end of file diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 00000000..042317ca --- /dev/null +++ b/package-lock.json @@ -0,0 +1,25 @@ +{ + "name": "json-schema-test-suite", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "json-schema-test-suite", + "version": "0.1.0", + "license": "MIT", + "dependencies": { + "jsonschema": "^1.5.0" + } + }, + "node_modules/jsonschema": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/jsonschema/-/jsonschema-1.5.0.tgz", + "integrity": "sha512-K+A9hhqbn0f3pJX17Q/7H6yQfD/5OXgdrR5UE12gMXCiN9D5Xq2o5mddV2QEcX/bjla99ASsAAQUyMCCRWAEhw==", + "license": "MIT", + "engines": { + "node": "*" + } + } + } +} diff --git a/package.json b/package.json index 75da9e29..c78224fa 100644 --- a/package.json +++ b/package.json @@ -8,5 +8,8 @@ "tests" ], "author": "http://json-schema.org", - "license": "MIT" + "license": "MIT", + "dependencies": { + "jsonschema": "^1.5.0" + } } diff --git a/tests/draft3/format.json b/tests/draft3/format.json index a5447c90..fef313d9 100644 --- a/tests/draft3/format.json +++ b/tests/draft3/format.json @@ -32,6 +32,31 @@ "description": "all string formats ignore nulls", "data": null, "valid": true + }, + { + "description": "User with double dot in email", + "data": "user@example..com", + "valid": false + }, + { + "description": "User uses a specific domain", + "data": "user@", + "valid": false + }, + { + "description": "Invalid email with space", + "data": "user name@example.com", + "valid": false + }, + { + "description": "Invalid email with no spec interpretation", + "data": "user@localhost", + "valid": false + }, + { + "description": "Invalid email with unwanted special symbols", + "data": "user//@example.com", + "valid": false } ] }, @@ -69,6 +94,7 @@ "data": null, "valid": true } + ] }, {