diff --git a/test/runtime/generic-input-all.json b/test/runtime/generic-input-all.json new file mode 100644 index 0000000000..1c2147a92a --- /dev/null +++ b/test/runtime/generic-input-all.json @@ -0,0 +1,78 @@ +{ + "$id": "TestObject", + "description": "This object contains all types of MetaModel generations", + "type": "object", + "properties": { + "string_type": { + "type": "string" + }, + "number_type": { + "type": "number" + }, + "boolean_type": { + "type": "boolean", + "description": "Status if marriage live in given house" + }, + "union_type": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] + }, + "array_type": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + } + ] + } + }, + "tuple_type": { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "additionalItems": false + }, + "object_type": { + "type": "object", + "properties": { + "test": { + "type": "string" + } + } + }, + "dictionary_type": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "enum_type": { + "enum": ["test", 1, true, {"test": 2}] + } + }, + "patternProperties": { + "^S(.?*)test&": { + "type": "string" + } + }, + "required": ["string_type", "boolean_type"] +} diff --git a/test/runtime/generic-input-simple.json b/test/runtime/generic-input-simple.json new file mode 100644 index 0000000000..ac630ebabf --- /dev/null +++ b/test/runtime/generic-input-simple.json @@ -0,0 +1,49 @@ +{ + "$id": "TestObject", + "description": "This object contains simple types of MetaModel generations. Object, enum, number, boolean array, tuple.", + "type": "object", + "properties": { + "string_type": { + "type": "string" + }, + "number_type": { + "type": "number" + }, + "boolean_type": { + "type": "boolean", + "description": "Status if marriage live in given house" + }, + "array_type": { + "type": "array", + "items": { + "type": "string" + } + }, + "tuple_type": { + "type": "array", + "items": [ + { + "type": "string" + }, + { + "type": "number" + } + ], + "additionalItems": false + }, + "object_type": { + "type": "object", + "properties": { + "test": { + "type": "string" + } + }, + "additionalProperties": false + }, + "enum_type": { + "enum": ["test", 1, true, {"test": 2}] + } + }, + "additionalProperties": false, + "required": ["string_type", "boolean_type"] +}