I've updated to 4.6.0 that fixed a bug where the first validation rule caused an exception. However, I was surprised to find that the output for the data field still showed it as optional, even though it is now explicitly required.
I think it shouldn't be marked as optional even with the following rules, because it has required children. But it definitely shouldn't be if it is explicitly required.
[
'data.title' => 'string|required'
]
My environment:
PHP version 8.x
Framework (Laravel/Lumen): Laravel
Laravel/Lumen version (from composer show laravel/framework or composer show laravel/lumen-framework): 9.36.3
Scribe version (from composer show knuckleswtf/scribe): 4.1.0
My Scribe config (minus the comments):
NOTE: I disabled all custom strategies and got the same result.
What happened? I have a route with the following rules:
and the following bodyParameters:
I've updated to 4.6.0 that fixed a bug where the first validation rule caused an exception. However, I was surprised to find that the output for the data field still showed it as optional, even though it is now explicitly required.
I think it shouldn't be marked as optional even with the following rules, because it has required children. But it definitely shouldn't be if it is explicitly required.
My environment:
composer show laravel/framework
orcomposer show laravel/lumen-framework
): 9.36.3composer show knuckleswtf/scribe
): 4.1.0My Scribe config (minus the comments):
NOTE: I disabled all custom strategies and got the same result.
Additional info: