laravel-openapi icon indicating copy to clipboard operation
laravel-openapi copied to clipboard

parameter & factory : add argument

Open Grummfy opened this issue 3 years ago • 0 comments

Hello, I'm wondering if it is possible to add some argument to \Vyuldashev\LaravelOpenApi\Attributes\Parameters to allow some argument. The idea would be to pass the validation request, by example, and allow to build part of the parameter information

So something like this

	#[OpenApi\Parameters(MyParameters::class), MyRequest::class]
	#[OpenApi\Response(ErrorValidationResponse::class, 422)]
	#[OpenApi\Operation]
	public function index(MyRequest $request)

thanks

Grummfy avatar Aug 23 '22 13:08 Grummfy