Skip to content

Commit 60c3932

Browse files
committed
json schema refactoring
1 parent f6ccc43 commit 60c3932

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

schemas/nswag.json

+11-8
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,22 @@
77
{
88
"properties": {
99
"codeGenerators": {
10-
"oneOf": [
11-
{
12-
"$ref": "#/definitions/openApiToRefit"
13-
},
14-
{
15-
"$ref": "https://raw.githubusercontent.com/MobileTeleSystems/ApiCodeGenerator/refs/heads/master/schemas/nswag.json#/definitions/codeGenerators"
16-
}
17-
]
10+
"$ref": "#/definitions/codeGenerators"
1811
}
1912
}
2013
}
2114
],
2215
"definitions": {
16+
"codeGenerators": {
17+
"oneOf": [
18+
{
19+
"$ref": "#/definitions/openApiToRefit"
20+
},
21+
{
22+
"$ref": "https://raw.githubusercontent.com/MobileTeleSystems/ApiCodeGenerator/refs/heads/master/schemas/nswag.json#/definitions/codeGenerators"
23+
}
24+
]
25+
},
2326
"openApiToRefit": {
2427
"additionalProperties": false,
2528
"properties": {

0 commit comments

Comments
 (0)