mirror of
https://github.com/ambieco/scribe.git
synced 2026-04-26 18:54:55 +08:00
Make bodyParam parsing more rbust
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user