Skip to content

Commit

Permalink
update test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Apr 30, 2024
1 parent eccf8b0 commit fb1e563
Show file tree
Hide file tree
Showing 2 changed files with 127 additions and 0 deletions.
78 changes: 78 additions & 0 deletions test/runtime/generic-input-all.json
Original file line number Diff line number Diff line change
@@ -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"]
}
49 changes: 49 additions & 0 deletions test/runtime/generic-input-simple.json
Original file line number Diff line number Diff line change
@@ -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"]
}

0 comments on commit fb1e563

Please sign in to comment.