summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2018-09-02 09:23:32 +0100
committerJulian Berman <Julian@GrayVines.com>2018-09-02 09:23:32 +0100
commit621e253fb34d9d55c08728d290e965287df06daf (patch)
treea4f4850d4c0b7835fdb82507aa1dfd679f8183d8 /tests
parentc268d99b5f358196ad6f848c2f48581753f88803 (diff)
downloadjsonschema-621e253fb34d9d55c08728d290e965287df06daf.tar.gz
Squashed 'json/' changes from e64ebf9..002ce0f
002ce0f Merge pull request #237 from leadpony/add_to_list 6e62399 Add Justify as a suite user to README.md 0436e52 Merge pull request #233 from leadpony/fix_indentation c09e3a6 Fix broken indentation in enum.json 353f7f3 Merge pull request #232 from Clemens-U/master aa833c5 Added a test for an invalid closing Z after time-zone offset for date-time format. c17161a Merge pull request #230 from Jokipii/master 139fb66 Add https://github.com/seznam/python-fastjsonschema to the list git-subtree-dir: json git-subtree-split: 002ce0fbe070f483429260188b18fe07bd6ec0f0
Diffstat (limited to 'tests')
-rw-r--r--tests/draft3/enum.json12
-rw-r--r--tests/draft4/enum.json14
-rw-r--r--tests/draft6/enum.json14
-rw-r--r--tests/draft6/optional/format.json5
-rw-r--r--tests/draft7/enum.json14
5 files changed, 32 insertions, 27 deletions
diff --git a/tests/draft3/enum.json b/tests/draft3/enum.json
index 0c83f08..fc3e070 100644
--- a/tests/draft3/enum.json
+++ b/tests/draft3/enum.json
@@ -39,12 +39,12 @@
{
"description": "enums in properties",
"schema": {
- "type":"object",
- "properties": {
- "foo": {"enum":["foo"]},
- "bar": {"enum":["bar"], "required":true}
- }
- },
+ "type":"object",
+ "properties": {
+ "foo": {"enum":["foo"]},
+ "bar": {"enum":["bar"], "required":true}
+ }
+ },
"tests": [
{
"description": "both properties are valid",
diff --git a/tests/draft4/enum.json b/tests/draft4/enum.json
index f124436..8fb9d7a 100644
--- a/tests/draft4/enum.json
+++ b/tests/draft4/enum.json
@@ -39,13 +39,13 @@
{
"description": "enums in properties",
"schema": {
- "type":"object",
- "properties": {
- "foo": {"enum":["foo"]},
- "bar": {"enum":["bar"]}
- },
- "required": ["bar"]
- },
+ "type":"object",
+ "properties": {
+ "foo": {"enum":["foo"]},
+ "bar": {"enum":["bar"]}
+ },
+ "required": ["bar"]
+ },
"tests": [
{
"description": "both properties are valid",
diff --git a/tests/draft6/enum.json b/tests/draft6/enum.json
index f124436..8fb9d7a 100644
--- a/tests/draft6/enum.json
+++ b/tests/draft6/enum.json
@@ -39,13 +39,13 @@
{
"description": "enums in properties",
"schema": {
- "type":"object",
- "properties": {
- "foo": {"enum":["foo"]},
- "bar": {"enum":["bar"]}
- },
- "required": ["bar"]
- },
+ "type":"object",
+ "properties": {
+ "foo": {"enum":["foo"]},
+ "bar": {"enum":["bar"]}
+ },
+ "required": ["bar"]
+ },
"tests": [
{
"description": "both properties are valid",
diff --git a/tests/draft6/optional/format.json b/tests/draft6/optional/format.json
index 8837485..74743ff 100644
--- a/tests/draft6/optional/format.json
+++ b/tests/draft6/optional/format.json
@@ -34,6 +34,11 @@
"valid": false
},
{
+ "description": "an invalid closing Z after time-zone offset",
+ "data": "1963-06-19T08:30:06.28123+01:00Z",
+ "valid": false
+ },
+ {
"description": "an invalid date-time string",
"data": "06/19/1963 08:30:06 PST",
"valid": false
diff --git a/tests/draft7/enum.json b/tests/draft7/enum.json
index f124436..8fb9d7a 100644
--- a/tests/draft7/enum.json
+++ b/tests/draft7/enum.json
@@ -39,13 +39,13 @@
{
"description": "enums in properties",
"schema": {
- "type":"object",
- "properties": {
- "foo": {"enum":["foo"]},
- "bar": {"enum":["bar"]}
- },
- "required": ["bar"]
- },
+ "type":"object",
+ "properties": {
+ "foo": {"enum":["foo"]},
+ "bar": {"enum":["bar"]}
+ },
+ "required": ["bar"]
+ },
"tests": [
{
"description": "both properties are valid",