Skip to content

Commit eb8cefb

Browse files
committed
JSON Schema generation
1 parent a63c8a0 commit eb8cefb

File tree

4 files changed

+62
-0
lines changed

4 files changed

+62
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"title": "AssetAdministrationShellEnvironment",
4+
"type": "object",
5+
"$id": "https://dummy.com",
6+
"definitions": {
7+
"ListOfPrimitives": {
8+
"type": "object",
9+
"properties": {
10+
"strings": {
11+
"type": "array",
12+
"items": {
13+
"type": "string"
14+
}
15+
},
16+
"integers": {
17+
"type": "array",
18+
"items": {
19+
"type": "integer"
20+
}
21+
},
22+
"booleans": {
23+
"type": "array",
24+
"items": {
25+
"type": "boolean"
26+
}
27+
}
28+
},
29+
"required": [
30+
"strings",
31+
"integers",
32+
"booleans"
33+
]
34+
},
35+
"ModelType": {
36+
"type": "string",
37+
"enum": []
38+
}
39+
}
40+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Code generated to: <output dir>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2019-09/schema",
3+
"title": "AssetAdministrationShellEnvironment",
4+
"type": "object"
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from typing import List
2+
3+
4+
class List_of_primitives():
5+
strings: List[str]
6+
integers: List[int]
7+
booleans: List[bool]
8+
9+
def __init__(self, strings: List[str], integers: List[int], booleans: List[bool]) -> None:
10+
self.strings = strings
11+
self.integers = integers
12+
self.booleans = booleans
13+
14+
15+
__version__ = "dummy"
16+
__xml_namespace__ = "https://dummy.com"

0 commit comments

Comments
 (0)