Open oralunal opened 1 year ago
Another scenario, i just want to verify queryparams and i define the queryparams with anotation, above the controller method. When i generate the document, all the rules in the formrequests seen as bodyparam. If i add an emptry queryParameters() method to the form request. Then it works nice.
This is a known conflict between Laravel and Scribe. Laravel lets you put all sorts of parameters in the validation rules, but Scribe can only use them for either body or query parameters. Any suggestions? The only way I can think of is this:
queryParameters()
or urlParameters()
method Not yet sure how this will work for inline validation rules.
Scribe version
4.21.2
PHP version
8.2
Framework
Laravel
Framework version
10.13.5
Scribe config
What happened?
I have a form request that validates the email verification URL. I was just trying something.
expires
,signature
are query parameters andid
,hash
are url parameters and my route is like below:If i use both![Ekran görüntüsü 2023-06-22 011140](https://github.com/knuckleswtf/scribe/assets/1948737/f5b6e150-9c2a-40b2-a7e3-113c8a45cd1a)
urlParameters()
andqueryParameters()
the output is broken. Output is like below:There are extra id and hash in query params.
Docs