From d739da36e8d9f92ad91c9a3968472d0322793895 Mon Sep 17 00:00:00 2001 From: Philipp Dunkel Date: Mon, 26 Dec 2016 00:18:20 +0000 Subject: [PATCH] Remove default.json because `default` is not intended for validation --- tests/draft3/default.json | 49 --------------------------------------- tests/draft4/default.json | 49 --------------------------------------- 2 files changed, 98 deletions(-) delete mode 100644 tests/draft3/default.json delete mode 100644 tests/draft4/default.json diff --git a/tests/draft3/default.json b/tests/draft3/default.json deleted file mode 100644 index 17629779..00000000 --- a/tests/draft3/default.json +++ /dev/null @@ -1,49 +0,0 @@ -[ - { - "description": "invalid type for default", - "schema": { - "properties": { - "foo": { - "type": "integer", - "default": [] - } - } - }, - "tests": [ - { - "description": "valid when property is specified", - "data": {"foo": 13}, - "valid": true - }, - { - "description": "still valid when the invalid default is used", - "data": {}, - "valid": true - } - ] - }, - { - "description": "invalid string value for default", - "schema": { - "properties": { - "bar": { - "type": "string", - "minLength": 4, - "default": "bad" - } - } - }, - "tests": [ - { - "description": "valid when property is specified", - "data": {"bar": "good"}, - "valid": true - }, - { - "description": "still valid when the invalid default is used", - "data": {}, - "valid": true - } - ] - } -] diff --git a/tests/draft4/default.json b/tests/draft4/default.json deleted file mode 100644 index 17629779..00000000 --- a/tests/draft4/default.json +++ /dev/null @@ -1,49 +0,0 @@ -[ - { - "description": "invalid type for default", - "schema": { - "properties": { - "foo": { - "type": "integer", - "default": [] - } - } - }, - "tests": [ - { - "description": "valid when property is specified", - "data": {"foo": 13}, - "valid": true - }, - { - "description": "still valid when the invalid default is used", - "data": {}, - "valid": true - } - ] - }, - { - "description": "invalid string value for default", - "schema": { - "properties": { - "bar": { - "type": "string", - "minLength": 4, - "default": "bad" - } - } - }, - "tests": [ - { - "description": "valid when property is specified", - "data": {"bar": "good"}, - "valid": true - }, - { - "description": "still valid when the invalid default is used", - "data": {}, - "valid": true - } - ] - } -]