@@ -817,7 +817,7 @@ The example parameter will populate the Swagger UI with the example value, and c
817
817
``` ruby
818
818
params do
819
819
requires :id , type: Integer , documentation: { example: 123 }
820
- optional :name , type String , documentation: { example: ' Buddy Guy' }
820
+ optional :name , type: String , documentation: { example: ' Buddy Guy' }
821
821
end
822
822
```
823
823
@@ -843,7 +843,7 @@ namespace 'store/order', desc: 'Order operations within a store', swagger: { nes
843
843
get :order_id do
844
844
...
845
845
end
846
- namespace ' actions' , desc: ' Order actions' do , nested: false
846
+ namespace ' actions' , desc: ' Order actions' , nested: false do
847
847
get ' evaluate' do
848
848
...
849
849
end
@@ -1265,7 +1265,7 @@ end
1265
1265
1266
1266
The result will look like following:
1267
1267
1268
- ```
1268
+ ``` json
1269
1269
"responses" : {
1270
1270
"200" : {
1271
1271
"description" : " Get a kitten" ,
@@ -1292,7 +1292,7 @@ end
1292
1292
1293
1293
The result will look like following:
1294
1294
1295
- ```
1295
+ ``` json
1296
1296
"responses" : {
1297
1297
"200" : {
1298
1298
"description" : " Get kittens" ,
@@ -1319,7 +1319,7 @@ get '/things' do
1319
1319
end
1320
1320
```
1321
1321
The result will look like following:
1322
- ```
1322
+ ``` json
1323
1323
"responses" : {
1324
1324
"200" : {
1325
1325
"description" : " Multiple response" ,
@@ -1351,7 +1351,7 @@ get '/things' do
1351
1351
end
1352
1352
```
1353
1353
The result will look like following:
1354
- ```
1354
+ ``` json
1355
1355
"responses" : {
1356
1356
"200" : {
1357
1357
"description" : " Multiple response with array" ,
@@ -1525,7 +1525,7 @@ end
1525
1525
```
1526
1526
1527
1527
Should generate this definitions:
1528
- ``` JSON
1528
+ ``` json
1529
1529
{
1530
1530
"definitions" : {
1531
1531
"Pet" : {
0 commit comments