Make bodyParam parsing more rbust

This commit is contained in:
shalvah
2018-10-12 14:26:08 +01:00
parent 7cdc567c83
commit 6e60d14ea2
8 changed files with 144 additions and 23 deletions

View File

@@ -57,6 +57,26 @@ abstract class GeneratorTestCase extends TestCase
'required' => false,
'description' => 'The id of the room.',
],
'forever' => [
'type' => 'boolean',
'required' => false,
'description' => 'Whether to ban the user forever.',
],
'another_one' => [
'type' => 'number',
'required' => false,
'description' => 'Just need something here.',
],
'yet_another_param' => [
'type' => 'object',
'required' => true,
'description' => '',
],
'even_more_param' => [
'type' => 'array',
'required' => false,
'description' => '',
],
], $parameters);
}