forked from asyncapi/modelina
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eccf8b0
commit fb1e563
Showing
2 changed files
with
127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} |