Skip to content

Commit 4594430

Browse files
localai-botmudler
andauthored
feat(swagger): update swagger (#6111)
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: mudler <[email protected]>
1 parent 9c7f92c commit 4594430

File tree

3 files changed

+59
-59
lines changed

3 files changed

+59
-59
lines changed

swagger/docs.go

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1087,26 +1087,6 @@ const docTemplate = `{
10871087
}
10881088
}
10891089
},
1090-
"p2p.NodeData": {
1091-
"type": "object",
1092-
"properties": {
1093-
"id": {
1094-
"type": "string"
1095-
},
1096-
"lastSeen": {
1097-
"type": "string"
1098-
},
1099-
"name": {
1100-
"type": "string"
1101-
},
1102-
"serviceID": {
1103-
"type": "string"
1104-
},
1105-
"tunnelAddress": {
1106-
"type": "string"
1107-
}
1108-
}
1109-
},
11101090
"proto.MemoryUsageData": {
11111091
"type": "object",
11121092
"properties": {
@@ -1451,6 +1431,26 @@ const docTemplate = `{
14511431
}
14521432
}
14531433
},
1434+
"schema.NodeData": {
1435+
"type": "object",
1436+
"properties": {
1437+
"id": {
1438+
"type": "string"
1439+
},
1440+
"lastSeen": {
1441+
"type": "string"
1442+
},
1443+
"name": {
1444+
"type": "string"
1445+
},
1446+
"serviceID": {
1447+
"type": "string"
1448+
},
1449+
"tunnelAddress": {
1450+
"type": "string"
1451+
}
1452+
}
1453+
},
14541454
"schema.OpenAIModel": {
14551455
"type": "object",
14561456
"properties": {
@@ -1704,13 +1704,13 @@ const docTemplate = `{
17041704
"federated_nodes": {
17051705
"type": "array",
17061706
"items": {
1707-
"$ref": "#/definitions/p2p.NodeData"
1707+
"$ref": "#/definitions/schema.NodeData"
17081708
}
17091709
},
17101710
"nodes": {
17111711
"type": "array",
17121712
"items": {
1713-
"$ref": "#/definitions/p2p.NodeData"
1713+
"$ref": "#/definitions/schema.NodeData"
17141714
}
17151715
}
17161716
}

swagger/swagger.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1080,26 +1080,6 @@
10801080
}
10811081
}
10821082
},
1083-
"p2p.NodeData": {
1084-
"type": "object",
1085-
"properties": {
1086-
"id": {
1087-
"type": "string"
1088-
},
1089-
"lastSeen": {
1090-
"type": "string"
1091-
},
1092-
"name": {
1093-
"type": "string"
1094-
},
1095-
"serviceID": {
1096-
"type": "string"
1097-
},
1098-
"tunnelAddress": {
1099-
"type": "string"
1100-
}
1101-
}
1102-
},
11031083
"proto.MemoryUsageData": {
11041084
"type": "object",
11051085
"properties": {
@@ -1444,6 +1424,26 @@
14441424
}
14451425
}
14461426
},
1427+
"schema.NodeData": {
1428+
"type": "object",
1429+
"properties": {
1430+
"id": {
1431+
"type": "string"
1432+
},
1433+
"lastSeen": {
1434+
"type": "string"
1435+
},
1436+
"name": {
1437+
"type": "string"
1438+
},
1439+
"serviceID": {
1440+
"type": "string"
1441+
},
1442+
"tunnelAddress": {
1443+
"type": "string"
1444+
}
1445+
}
1446+
},
14471447
"schema.OpenAIModel": {
14481448
"type": "object",
14491449
"properties": {
@@ -1697,13 +1697,13 @@
16971697
"federated_nodes": {
16981698
"type": "array",
16991699
"items": {
1700-
"$ref": "#/definitions/p2p.NodeData"
1700+
"$ref": "#/definitions/schema.NodeData"
17011701
}
17021702
},
17031703
"nodes": {
17041704
"type": "array",
17051705
"items": {
1706-
"$ref": "#/definitions/p2p.NodeData"
1706+
"$ref": "#/definitions/schema.NodeData"
17071707
}
17081708
}
17091709
}

swagger/swagger.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -195,19 +195,6 @@ definitions:
195195
type: string
196196
type: array
197197
type: object
198-
p2p.NodeData:
199-
properties:
200-
id:
201-
type: string
202-
lastSeen:
203-
type: string
204-
name:
205-
type: string
206-
serviceID:
207-
type: string
208-
tunnelAddress:
209-
type: string
210-
type: object
211198
proto.MemoryUsageData:
212199
properties:
213200
breakdown:
@@ -434,6 +421,19 @@ definitions:
434421
object:
435422
type: string
436423
type: object
424+
schema.NodeData:
425+
properties:
426+
id:
427+
type: string
428+
lastSeen:
429+
type: string
430+
name:
431+
type: string
432+
serviceID:
433+
type: string
434+
tunnelAddress:
435+
type: string
436+
type: object
437437
schema.OpenAIModel:
438438
properties:
439439
id:
@@ -611,11 +611,11 @@ definitions:
611611
properties:
612612
federated_nodes:
613613
items:
614-
$ref: '#/definitions/p2p.NodeData'
614+
$ref: '#/definitions/schema.NodeData'
615615
type: array
616616
nodes:
617617
items:
618-
$ref: '#/definitions/p2p.NodeData'
618+
$ref: '#/definitions/schema.NodeData'
619619
type: array
620620
type: object
621621
schema.SysInfoModel:

0 commit comments

Comments
 (0)