Skip to content

Commit 21ef5c4

Browse files
authored
Merge pull request #87 from Systems-Modeling/feature/ST5AS-211
feat: JSON Schema for request payloads ST5AS-211
2 parents c82046f + 5c11216 commit 21ef5c4

8 files changed

Lines changed: 345722 additions & 27281 deletions

File tree

conf/json/schema/api/OmgSysMLApi.json renamed to conf/json/schema/api/schemas-sans-metamodel-requests.json

Lines changed: 406 additions & 1 deletion
Large diffs are not rendered by default.

conf/json/schema/api/schemas.json

Lines changed: 106350 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
}
2424
},
2525
"annotatedElement": {
26-
"type": "array",
26+
"type": "array",in
2727
"items": {
2828
"$ref": "http://www.omg.org/spec/SysML/2.0/Identified",
2929
"$comment": "http://www.omg.org/spec/SysML/2.0/Element"

public/docs/focused/index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html> <!-- Important: must specify -->
2+
<html>
3+
<head>
4+
<meta charset="utf-8"> <!-- Important: rapi-doc uses utf8 characters -->
5+
<script type="module" src="https://unpkg.com/rapidoc/dist/rapidoc-min.js"></script>
6+
</head>
7+
<body>
8+
<rapi-doc
9+
spec-url="openapi.json"
10+
show-components="true"
11+
allow-spec-file-load="false"
12+
allow-authentication="false"
13+
allow-spec-file-download="true"
14+
allow-server-selection="false"
15+
render-style="focused"
16+
theme="light"
17+
></rapi-doc>
18+
</body>
19+
</html>

public/docs/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
allow-authentication="false"
1313
allow-spec-file-download="true"
1414
allow-server-selection="false"
15-
render-style="focused"
15+
render-style="view"
16+
theme="light"
1617
></rapi-doc>
1718
</body>
1819
</html>

public/docs/openapi-sans-schemas.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
"content": {
116116
"application/json": {
117117
"schema": {
118-
"$ref": "#/components/schemas/Project"
118+
"$ref": "#/components/schemas/ProjectRequest"
119119
}
120120
}
121121
},
@@ -242,7 +242,7 @@
242242
"content": {
243243
"application/json": {
244244
"schema": {
245-
"$ref": "#/components/schemas/Project"
245+
"$ref": "#/components/schemas/ProjectRequest"
246246
}
247247
}
248248
},
@@ -455,7 +455,7 @@
455455
"content": {
456456
"application/json": {
457457
"schema": {
458-
"$ref": "#/components/schemas/Branch"
458+
"$ref": "#/components/schemas/BranchRequest"
459459
}
460460
}
461461
},
@@ -749,7 +749,7 @@
749749
"content": {
750750
"application/json": {
751751
"schema": {
752-
"$ref": "#/components/schemas/Tag"
752+
"$ref": "#/components/schemas/TagRequest"
753753
}
754754
}
755755
},
@@ -1052,7 +1052,7 @@
10521052
"content": {
10531053
"application/json": {
10541054
"schema": {
1055-
"$ref": "#/components/schemas/Commit"
1055+
"$ref": "#/components/schemas/CommitRequest"
10561056
}
10571057
}
10581058
},
@@ -1883,7 +1883,7 @@
18831883
"content": {
18841884
"application/json": {
18851885
"schema": {
1886-
"$ref": "#/components/schemas/Query"
1886+
"$ref": "#/components/schemas/QueryRequest"
18871887
}
18881888
}
18891889
},
@@ -2183,7 +2183,7 @@
21832183
"content": {
21842184
"application/json": {
21852185
"schema": {
2186-
"$ref": "#/components/schemas/Query"
2186+
"$ref": "#/components/schemas/QueryRequest"
21872187
}
21882188
}
21892189
},
@@ -2266,7 +2266,7 @@
22662266
"content": {
22672267
"application/json": {
22682268
"schema": {
2269-
"$ref": "#/components/schemas/Query"
2269+
"$ref": "#/components/schemas/QueryRequest"
22702270
}
22712271
}
22722272
},

0 commit comments

Comments
 (0)