File tree 7 files changed +22
-22
lines changed
http-generator-core/src/main/java/io/avaje/http/generator/core/openapi
test-javalin/src/main/resources/public
test-jex/src/main/resources/public
test-nima-jsonb/src/test/resources
test-sigma/src/main/resources/public
7 files changed +22
-22
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ public void build() {
51
51
52
52
} else {
53
53
Parameter param = new Parameter ();
54
- param .setName (varName );
54
+ param .setName (paramName );
55
55
param .setDescription (javadoc .getParams ().get (paramName ));
56
56
57
57
Schema <?> schema = ctx .toSchema (rawType , element );
Original file line number Diff line number Diff line change 393
393
}
394
394
},
395
395
{
396
- "name" : " myParam " ,
396
+ "name" : " my-param " ,
397
397
"in" : " query" ,
398
398
"schema" : {
399
399
"type" : " string"
779
779
}
780
780
},
781
781
{
782
- "name" : " head " ,
782
+ "name" : " Head " ,
783
783
"in" : " header" ,
784
784
"schema" : {
785
785
"type" : " string"
994
994
}
995
995
},
996
996
{
997
- "name" : " param2 " ,
997
+ "name" : " q-2 " ,
998
998
"in" : " query" ,
999
999
"schema" : {
1000
1000
"type" : " string"
1001
1001
}
1002
1002
},
1003
1003
{
1004
- "name" : " contentLength " ,
1004
+ "name" : " Content-Length " ,
1005
1005
"in" : " header" ,
1006
1006
"schema" : {
1007
1007
"type" : " string"
1008
1008
}
1009
1009
},
1010
1010
{
1011
- "name" : " otherHeader " ,
1011
+ "name" : " x-oh " ,
1012
1012
"in" : " header" ,
1013
1013
"schema" : {
1014
1014
"type" : " string"
1746
1746
"description" : " " ,
1747
1747
"parameters" : [
1748
1748
{
1749
- "name" : " head " ,
1749
+ "name" : " Head " ,
1750
1750
"in" : " header" ,
1751
1751
"schema" : {
1752
1752
"type" : " string"
Original file line number Diff line number Diff line change 42
42
}
43
43
},
44
44
{
45
- "name" : " param2 " ,
45
+ "name" : " q-2 " ,
46
46
"in" : " query" ,
47
47
"schema" : {
48
48
"type" : " string"
49
49
}
50
50
},
51
51
{
52
- "name" : " contentLength " ,
52
+ "name" : " Content-Length " ,
53
53
"in" : " header" ,
54
54
"schema" : {
55
55
"type" : " string"
56
56
}
57
57
},
58
58
{
59
- "name" : " otherHeader " ,
59
+ "name" : " x-oh " ,
60
60
"in" : " header" ,
61
61
"schema" : {
62
62
"type" : " string"
Original file line number Diff line number Diff line change 363
363
}
364
364
},
365
365
{
366
- "name" : " myParam " ,
366
+ "name" : " my-param " ,
367
367
"in" : " query" ,
368
368
"schema" : {
369
369
"type" : " string"
Original file line number Diff line number Diff line change 432
432
}
433
433
},
434
434
{
435
- "name" : " myParam " ,
435
+ "name" : " my-param " ,
436
436
"in" : " query" ,
437
437
"schema" : {
438
438
"type" : " string"
908
908
}
909
909
},
910
910
{
911
- "name" : " head " ,
911
+ "name" : " Head " ,
912
912
"in" : " header" ,
913
913
"schema" : {
914
914
"type" : " string"
Original file line number Diff line number Diff line change 21
21
"/openapi/delete/{type}" : {
22
22
"delete" : {
23
23
"tags" : [
24
-
24
+
25
25
],
26
26
"summary" : " " ,
27
27
"description" : " " ,
42
42
}
43
43
},
44
44
{
45
- "name" : " header " ,
45
+ "name" : " Header " ,
46
46
"in" : " header" ,
47
47
"schema" : {
48
48
"type" : " string"
66
66
"/openapi/get" : {
67
67
"get" : {
68
68
"tags" : [
69
-
69
+
70
70
],
71
71
"summary" : " Example of Open API Get (up to the first period is the summary)" ,
72
72
"description" : " When using Javalin Context only This Javadoc description is added to the generated openapi.json" ,
142
142
"/openapi/post1" : {
143
143
"post" : {
144
144
"tags" : [
145
-
145
+
146
146
],
147
147
"summary" : " Standard Post" ,
148
148
"description" : " The Deprecated annotation adds \" deprecacted:true\" to the generated json" ,
191
191
"/openapi/put" : {
192
192
"put" : {
193
193
"tags" : [
194
-
194
+
195
195
],
196
196
"summary" : " " ,
197
197
"description" : " " ,
256
256
}
257
257
}
258
258
}
259
- }
259
+ }
Original file line number Diff line number Diff line change 393
393
}
394
394
},
395
395
{
396
- "name" : " myParam " ,
396
+ "name" : " my-param " ,
397
397
"in" : " query" ,
398
398
"schema" : {
399
399
"type" : " string"
779
779
}
780
780
},
781
781
{
782
- "name" : " head " ,
782
+ "name" : " Head " ,
783
783
"in" : " header" ,
784
784
"schema" : {
785
785
"type" : " string"
1584
1584
"description" : " " ,
1585
1585
"parameters" : [
1586
1586
{
1587
- "name" : " head " ,
1587
+ "name" : " Head " ,
1588
1588
"in" : " header" ,
1589
1589
"schema" : {
1590
1590
"type" : " string"
You can’t perform that action at this time.
0 commit comments