Open MohammadMirsafaei opened 3 years ago
What happened?
php artisan scribe:generate
body
let body =
instead of
cosnt body = new FormData(); body.append....
Screenshots and stack traces:
My environment:
php -v
composer show laravel/framework
composer show laravel/lumen-framework
composer show knuckleswtf/scribe
My Scribe config (minus the comments): It's Scribe default config Additional info: My validation rules:
'data' => 'filled|array', 'data.*' => 'required|array', 'data.*.is_file' => 'required|boolean', 'data.*.value' => 'filled|string|required_without:data.*.file', 'data.*.file' => 'filled|required_without:data.*.value|file|mimes:png,jpg,gif,mp4,mp3|mimetypes:image/jpeg,image/png,video/mp4,audio/mpeg',
I think the problem is when using 2 nested array and the type is file. If I remove data.*.file it works ok.
file
data.*.file
Hmm, strange. Do examples in other languages show up?
sorry for late answering, this bug happens in other languages too
Thank you for your help with this. Very much appreciated.
What happened?
php artisan scribe:generate
body
request in javascript. it show only:let body =
instead of
Screenshots and stack traces:
My environment:
php -v
): 7.3.29composer show laravel/framework
orcomposer show laravel/lumen-framework
): 8.52.0composer show knuckleswtf/scribe
): 2.7.10My Scribe config (minus the comments): It's Scribe default config Additional info: My validation rules:
I think the problem is when using 2 nested array and the type is
file
. If I removedata.*.file
it works ok.