Skip to content

Commit 444d34a

Browse files
committed
Updates to the test openapi.json that is generated
1 parent 0797eff commit 444d34a

File tree

2 files changed

+70
-17
lines changed

2 files changed

+70
-17
lines changed

tests/test-javalin-jsonb/src/main/resources/public/openapi.json

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1158,10 +1158,8 @@
11581158
"content" : {
11591159
"image/png" : {
11601160
"schema" : {
1161-
"type" : "array",
1162-
"items" : {
1163-
"$ref" : "#/components/schemas/byte"
1164-
}
1161+
"type" : "string",
1162+
"format" : "byte"
11651163
}
11661164
}
11671165
}
@@ -1178,12 +1176,10 @@
11781176
"description" : "",
11791177
"requestBody" : {
11801178
"content" : {
1181-
"application/json" : {
1179+
"application/text" : {
11821180
"schema" : {
1183-
"type" : "array",
1184-
"items" : {
1185-
"$ref" : "#/components/schemas/byte"
1186-
}
1181+
"type" : "string",
1182+
"format" : "byte"
11871183
}
11881184
}
11891185
},
@@ -1553,9 +1549,10 @@
15531549
"description" : "",
15541550
"requestBody" : {
15551551
"content" : {
1556-
"application/json" : {
1552+
"application/bson" : {
15571553
"schema" : {
1558-
"$ref" : "#/components/schemas/InputStream"
1554+
"type" : "string",
1555+
"format" : "byte"
15591556
}
15601557
}
15611558
},
@@ -1840,6 +1837,37 @@
18401837
}
18411838
}
18421839
},
1840+
"/test/strBody" : {
1841+
"post" : {
1842+
"tags" : [
1843+
1844+
],
1845+
"summary" : "",
1846+
"description" : "",
1847+
"requestBody" : {
1848+
"content" : {
1849+
"application/text" : {
1850+
"schema" : {
1851+
"type" : "string"
1852+
}
1853+
}
1854+
},
1855+
"required" : true
1856+
},
1857+
"responses" : {
1858+
"201" : {
1859+
"description" : "",
1860+
"content" : {
1861+
"application/json" : {
1862+
"schema" : {
1863+
"type" : "string"
1864+
}
1865+
}
1866+
}
1867+
}
1868+
}
1869+
}
1870+
},
18431871
"/test/withMatrixParam/{type-1_segment}/{range_segment}" : {
18441872
"get" : {
18451873
"tags" : [
@@ -1988,9 +2016,6 @@
19882016
}
19892017
}
19902018
},
1991-
"InputStream" : {
1992-
"type" : "object"
1993-
},
19942019
"MyForm" : {
19952020
"type" : "object",
19962021
"properties" : {
@@ -2017,9 +2042,6 @@
20172042
"type" : "string"
20182043
}
20192044
}
2020-
},
2021-
"byte" : {
2022-
"type" : "object"
20232045
}
20242046
},
20252047
"securitySchemes" : {

tests/test-jex/src/main/resources/public/openapi.json

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,37 @@
326326
}
327327
}
328328
},
329+
"/test/strBody" : {
330+
"post" : {
331+
"tags" : [
332+
333+
],
334+
"summary" : "",
335+
"description" : "",
336+
"requestBody" : {
337+
"content" : {
338+
"application/text" : {
339+
"schema" : {
340+
"type" : "string"
341+
}
342+
}
343+
},
344+
"required" : true
345+
},
346+
"responses" : {
347+
"201" : {
348+
"description" : "",
349+
"content" : {
350+
"application/json" : {
351+
"schema" : {
352+
"type" : "string"
353+
}
354+
}
355+
}
356+
}
357+
}
358+
}
359+
},
329360
"/withDefault/{name}" : {
330361
"get" : {
331362
"tags" : [

0 commit comments

Comments
 (0)