Skip to content

Adds query param when using route param with custom request class #393

Closed Answered by romalytvynenko
paulchill asked this question in Q&A
Discussion options

You must be logged in to vote

@paulchill after more thoughts, I believe that this behavior is correct 🫣 At the same time, the stuff should not drive you nuts! So I'm about to allow to manually opt out of some parameters documentation by using @ignoreParam annotation.

So you'd need to write rules like so:

public function rules()
{
    return [
        /** @ignoreParam */
        'id' => 'required|string'
    ];
}

Does that make sense?

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@paulchill
Comment options

@romalytvynenko
Comment options

@paulchill
Comment options

@romalytvynenko
Comment options

Answer selected by romalytvynenko
@paulchill
Comment options

@romalytvynenko
Comment options

@paulchill
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants