summaryrefslogtreecommitdiff
path: root/json
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
commit3baccb52a9ccf968cc4339725d252f9957e4b351 (patch)
treed404174cefe4477a883adee0ac157572eb555515 /json
parentc90af71e8478a2bfb0fabd4bb48805e85c9428a8 (diff)
parent621e253fb34d9d55c08728d290e965287df06daf (diff)
downloadjsonschema-3baccb52a9ccf968cc4339725d252f9957e4b351.tar.gz
Merge commit '621e253fb34d9d55c08728d290e965287df06daf'
* commit '621e253fb34d9d55c08728d290e965287df06daf': Squashed 'json/' changes from e64ebf9..002ce0f
Diffstat (limited to 'json')
-rw-r--r--json/README.md2
-rw-r--r--json/tests/draft3/enum.json12
-rw-r--r--json/tests/draft4/enum.json14
-rw-r--r--json/tests/draft6/enum.json14
-rw-r--r--json/tests/draft6/optional/format.json5
-rw-r--r--json/tests/draft7/enum.json14
6 files changed, 34 insertions, 27 deletions
diff --git a/json/README.md b/json/README.md
index 2c70c39..8242a44 100644
--- a/json/README.md
+++ b/json/README.md
@@ -100,6 +100,7 @@ This suite is being used by:
* [json-schema-validator](https://github.com/daveclayton/json-schema-validator)
* [everit-org/json-schema](https://github.com/everit-org/json-schema)
* [networknt/json-schema-validator](https://github.com/networknt/json-schema-validator)
+* [Justify](https://github.com/leadpony/justify)
### JavaScript ###
@@ -140,6 +141,7 @@ for more information.
### Python ###
* [jsonschema](https://github.com/Julian/jsonschema)
+* [fastjsonschema](https://github.com/seznam/python-fastjsonschema)
### Ruby ###
diff --git a/json/tests/draft3/enum.json b/json/tests/draft3/enum.json
index 0c83f08..fc3e070 100644
--- a/json/tests/draft3/enum.json
+++ b/json/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/json/tests/draft4/enum.json b/json/tests/draft4/enum.json
index f124436..8fb9d7a 100644
--- a/json/tests/draft4/enum.json
+++ b/json/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/json/tests/draft6/enum.json b/json/tests/draft6/enum.json
index f124436..8fb9d7a 100644
--- a/json/tests/draft6/enum.json
+++ b/json/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/json/tests/draft6/optional/format.json b/json/tests/draft6/optional/format.json
index 8837485..74743ff 100644
--- a/json/tests/draft6/optional/format.json
+++ b/json/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/json/tests/draft7/enum.json b/json/tests/draft7/enum.json
index f124436..8fb9d7a 100644
--- a/json/tests/draft7/enum.json
+++ b/json/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",