request-model icon indicating copy to clipboard operation
request-model copied to clipboard

Results 8 request-model issues
Sort by recently updated
recently updated
newest added

It might be convenient to see to already hydrated request model not doing `dd()` or using Xdebug.

type:enhancement

There was an idea to create a class of some RequestForm/FormRequest, that works only with POST data.

status:under discussion

```php namespace Yiisoft\RequestModel; final class RequestModelFactory { private function getRequestData(ServerRequestInterface $request): array { return [ 'query' => $request->getQueryParams(), 'body' => $request->getParsedBody(), 'attributes' => $request->getAttributes(), 'headers' => $request->getHeaders(), 'files' => $request->getUploadedFiles(),...

type:enhancement

https://github.com/yiisoft/request-model#general-usage The middleware example is incorrect

good first issue
status:ready for adoption
type:docs

Hi, I would like to format the error message with runtime Yii translator, a [middleware](https://github.com/razonyang/yii-translator-middleware) that store the translator instance into request `attributes`, according to the `Accept-Language` header or URL...

type:bug
swoole

It would be nice to add transformers that should transform the request body before validation. ```php public function setRequestData(array $requestData): void { $this->requestData = $this->doTransform($requestData); } ```

status:under discussion
type:feature

| Q | A | ------------- | --- | Is bugfix? | ❌ | New feature? | ✔️ | Breaks BC? | ✔️ | Fixed issues | #15

status:under discussion

It is difficult to work with optional fields. Has two algorithm. For example, field `sort` optional and maybe "asc" or "desc". **Strict algorithm** If data has field (even empty), then...

status:under discussion