|
8 | 8 | produces: ['application/json'],
|
9 | 9 | consumes: ['application/json'],
|
10 | 10 | parameters: [
|
11 |
| - { in: 'body', name: 'in_body_1', description: 'in_body_1', type: 'integer', format: 'int32', required: true }, |
| 11 | + { in: 'body', name: 'in_body_1', description: 'in_body_1', type: 'integer', format: 'int32', required: true, example: 23 }, |
12 | 12 | { in: 'body', name: 'in_body_2', description: 'in_body_2', type: 'string', required: false },
|
13 | 13 | { in: 'body', name: 'in_body_3', description: 'in_body_3', type: 'string', required: false }
|
14 | 14 | ],
|
|
31 | 31 | { in: 'path', name: 'key', description: nil, type: 'integer', format: 'int32', required: true },
|
32 | 32 | { in: 'body', name: 'in_body_1', description: 'in_body_1', type: 'integer', format: 'int32', required: true },
|
33 | 33 | { in: 'body', name: 'in_body_2', description: 'in_body_2', type: 'string', required: false },
|
34 |
| - { in: 'body', name: 'in_body_3', description: 'in_body_3', type: 'string', required: false } |
| 34 | + { in: 'body', name: 'in_body_3', description: 'in_body_3', type: 'string', required: false, example: 'my example string' } |
35 | 35 | ],
|
36 | 36 | responses: { 200 => { description: 'put in body /wo entity', schema: { '$ref' => '#/definitions/InBody' } } },
|
37 | 37 | tags: ['in_body'],
|
|
85 | 85 | {
|
86 | 86 | type: 'object',
|
87 | 87 | properties: {
|
88 |
| - in_body_1: { type: 'integer', format: 'int32', description: 'in_body_1' }, |
| 88 | + in_body_1: { type: 'integer', format: 'int32', description: 'in_body_1', example: 23 }, |
89 | 89 | in_body_2: { type: 'string', description: 'in_body_2' },
|
90 | 90 | in_body_3: { type: 'string', description: 'in_body_3' }
|
91 | 91 | },
|
|
99 | 99 | properties: {
|
100 | 100 | in_body_1: { type: 'integer', format: 'int32', description: 'in_body_1' },
|
101 | 101 | in_body_2: { type: 'string', description: 'in_body_2' },
|
102 |
| - in_body_3: { type: 'string', description: 'in_body_3' } |
| 102 | + in_body_3: { type: 'string', description: 'in_body_3', example: 'my example string' } |
103 | 103 | },
|
104 | 104 | required: [:in_body_1]
|
105 | 105 | }
|
|
0 commit comments