Skip to content

Commit 41f0df1

Browse files
committed
update openapi.json with new model examples
1 parent e76b901 commit 41f0df1

File tree

1 file changed

+54
-8
lines changed

1 file changed

+54
-8
lines changed

api/openapi.json

Lines changed: 54 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5934,7 +5934,17 @@
59345934
"metadata",
59355935
"url"
59365936
],
5937-
"title": "JobMetadata"
5937+
"title": "JobMetadata",
5938+
"example": {
5939+
"job_id": "3497e4de-0e69-41fb-b08f-7f3875a1ac4b",
5940+
"metadata": {
5941+
"bool": "true",
5942+
"float": "3.14",
5943+
"int": "42",
5944+
"str": "hej med dig"
5945+
},
5946+
"url": "https://f02b2452-1dd8-4882-b673-af06373b41b3.fake"
5947+
}
59385948
},
59395949
"JobMetadataUpdate": {
59405950
"properties": {
@@ -5961,7 +5971,15 @@
59615971
}
59625972
},
59635973
"type": "object",
5964-
"title": "JobMetadataUpdate"
5974+
"title": "JobMetadataUpdate",
5975+
"example": {
5976+
"metadata": {
5977+
"bool": "true",
5978+
"float": "3.14",
5979+
"int": "42",
5980+
"str": "hej med dig"
5981+
}
5982+
}
59655983
},
59665984
"JobOutputs": {
59675985
"properties": {
@@ -6244,8 +6262,15 @@
62446262
"title": "Items"
62456263
},
62466264
"total": {
6247-
"type": "integer",
6248-
"minimum": 0,
6265+
"anyOf": [
6266+
{
6267+
"type": "integer",
6268+
"minimum": 0
6269+
},
6270+
{
6271+
"type": "null"
6272+
}
6273+
],
62496274
"title": "Total"
62506275
}
62516276
},
@@ -6265,8 +6290,15 @@
62656290
"title": "Items"
62666291
},
62676292
"total": {
6268-
"type": "integer",
6269-
"minimum": 0,
6293+
"anyOf": [
6294+
{
6295+
"type": "integer",
6296+
"minimum": 0
6297+
},
6298+
{
6299+
"type": "null"
6300+
}
6301+
],
62706302
"title": "Total"
62716303
}
62726304
},
@@ -6808,11 +6840,25 @@
68086840
"title": "Uid"
68096841
},
68106842
"title": {
6811-
"type": "string",
6843+
"anyOf": [
6844+
{
6845+
"type": "string"
6846+
},
6847+
{
6848+
"type": "null"
6849+
}
6850+
],
68126851
"title": "Title"
68136852
},
68146853
"description": {
6815-
"type": "string",
6854+
"anyOf": [
6855+
{
6856+
"type": "string"
6857+
},
6858+
{
6859+
"type": "null"
6860+
}
6861+
],
68166862
"title": "Description"
68176863
}
68186864
},

0 commit comments

Comments
 (0)