rakutentech / laravel-request-docs

Effortless API documentation tool for Laravel applications. Swagger alternative.
MIT License
717 stars 106 forks source link

Edit required field in api document without changing form request #366

Closed mahdidev70 closed 2 months ago

mahdidev70 commented 5 months ago

Remove a field from validation when using prepareForValidation and set something extra to the request.

When I use the prepareForValidation method in a form request to add a new key and value, the API documentation considers that field as a required field that must come from the