From 91115920b703496010d0a72bf0badf97ef146d58 Mon Sep 17 00:00:00 2001 From: Christian Vogel Date: Sun, 12 Feb 2017 13:19:42 -0800 Subject: [PATCH] added necessary tck files for new tests --- .../itemsInvalidTypeTest/input-tck.json | 97 +++++++++++++++++++ .../input-tck.json | 31 ++++++ 2 files changed, 128 insertions(+) create mode 100644 tests/raml-1.0/Types/ArrayTypes/itemsInvalidTypeTest/input-tck.json create mode 100644 tests/raml-1.0/Types/ObjectTypes/additionPropertiesInvalidTest/input-tck.json diff --git a/tests/raml-1.0/Types/ArrayTypes/itemsInvalidTypeTest/input-tck.json b/tests/raml-1.0/Types/ArrayTypes/itemsInvalidTypeTest/input-tck.json new file mode 100644 index 00000000..06b05f57 --- /dev/null +++ b/tests/raml-1.0/Types/ArrayTypes/itemsInvalidTypeTest/input-tck.json @@ -0,0 +1,97 @@ +{ + "ramlVersion": "RAML10", + "type": "Api", + "specification": { + "types": [ + { + "Foo": { + "name": "Foo", + "displayName": "Foo", + "type": [ + "string" + ], + "required": true, + "__METADATA__": { + "primitiveValuesMeta": { + "displayName": { + "calculated": true + }, + "type": { + "insertedAsDefault": true + }, + "required": { + "insertedAsDefault": true + } + } + } + } + }, + { + "Bar": { + "name": "Bar", + "displayName": "Bar", + "type": [ + "string" + ], + "required": true, + "__METADATA__": { + "primitiveValuesMeta": { + "displayName": { + "calculated": true + }, + "type": { + "insertedAsDefault": true + }, + "required": { + "insertedAsDefault": true + } + } + } + } + }, + { + "FooBarArray": { + "name": "FooBarArray", + "displayName": "FooBarArray", + "type": [ + "array" + ], + "required": true, + "items": { + "name": "items", + "displayName": "items", + "type": [ + "string" + ], + "required": true, + "__METADATA__": { + "primitiveValuesMeta": { + "displayName": { + "calculated": true + }, + "type": { + "insertedAsDefault": true + }, + "required": { + "insertedAsDefault": true + } + } + } + }, + "__METADATA__": { + "primitiveValuesMeta": { + "displayName": { + "calculated": true + }, + "required": { + "insertedAsDefault": true + } + } + } + } + } + ], + "title": "TestRAML" + }, + "errors": [] +} \ No newline at end of file diff --git a/tests/raml-1.0/Types/ObjectTypes/additionPropertiesInvalidTest/input-tck.json b/tests/raml-1.0/Types/ObjectTypes/additionPropertiesInvalidTest/input-tck.json new file mode 100644 index 00000000..fd11ae1a --- /dev/null +++ b/tests/raml-1.0/Types/ObjectTypes/additionPropertiesInvalidTest/input-tck.json @@ -0,0 +1,31 @@ +{ + "ramlVersion": "RAML10", + "type": "Api", + "specification": { + "types": [ + { + "Employee": { + "name": "Employee", + "displayName": "Employee", + "type": [ + "object" + ], + "required": true, + "additionalProperties": false, + "__METADATA__": { + "primitiveValuesMeta": { + "displayName": { + "calculated": true + }, + "required": { + "insertedAsDefault": true + } + } + } + } + } + ], + "title": "TestRAML" + }, + "errors": [] +} \ No newline at end of file