summaryrefslogtreecommitdiff
path: root/src/test/resources/draft4/extra/property.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/resources/draft4/extra/property.json')
-rw-r--r--src/test/resources/draft4/extra/property.json37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/test/resources/draft4/extra/property.json b/src/test/resources/draft4/extra/property.json
new file mode 100644
index 0000000..c1a5127
--- /dev/null
+++ b/src/test/resources/draft4/extra/property.json
@@ -0,0 +1,37 @@
+[
+ {
+ "description": "id as schema",
+ "schema": {
+ "id": "http://localhost:1234/id_schema/schema/features.json",
+ "title": "property object",
+ "type": "object",
+ "properties": {
+ "featuresInteger": {
+ "$ref": "#/featuresInteger"
+ },
+ "featuresBoolean": {
+ "$ref": "#/featuresBoolean"
+ }
+ },
+ "additionalProperties": false
+ },
+ "tests": [
+ {
+ "description": "an integer is an integer",
+ "data": {
+ "featuresInteger": 4,
+ "featuresBoolean": true
+ },
+ "valid": true
+ },
+ {
+ "description": "a number is not an integer",
+ "data": {
+ "featuresInteger": 4.0,
+ "featuresBoolean": true
+ },
+ "valid": false
+ }
+ ]
+ }
+] \ No newline at end of file