Closed oskobri closed 1 year ago
Hm, I'll need you to debug what actually happens when the FormRequest is called. Maybe try dumping all the incoming request parameters and running php artisan scribe:generate
.
In my example, body param type is sent as "something".
I find this unlikely. I don't think Scribe can, on its own, send one parameter when making a response call to get other parameters, but tou can achieve this by using beforeResponseCall
(see the docs).
Anyway, what about using required_if
instead? Seems like it would work fine for your use case, and I think Scribe supports that better.
Scribe version
4.23.1
PHP version
8.2
Framework
Laravel
Framework version
v10.22.0
Scribe config
What happened?
Hello,
I use Form request rules and the rules inside an if are not read by scribe. Ex:
In my example, body param type is sent as "something".
Docs