zend-expressive-hal icon indicating copy to clipboard operation
zend-expressive-hal copied to clipboard

Hypertext Application Language implementation for PHP and PSR-7

Results 7 zend-expressive-hal issues
Sort by recently updated
recently updated
newest added

Provide a narrative description of what you are trying to accomplish: - [x] Are you fixing a bug? - [x] Detail how the bug is invoked currently. - [x] Detail...

- [x] Are you fixing a bug? - [x] Detail how the bug is invoked currently. - [x] Detail the original, incorrect behavior. - [x] Detail the new, expected behavior....

While trying to create a resource from a numbered array an exception is thrown due to `empty($name)` check on zero index on [this line](https://github.com/zendframework/zend-expressive-hal/blob/4fd30329f61ebd7f33dfaa798195ef45861f477e/src/HalResource.php#L264). ### Code to reproduce the issue...

Creating a Link with a `null` attribute, I get an `InvalidArgumentException`. I'm not 100% sure about it but I guess that having `null` attributes should be allowed in Hal links...

I am trying to modify the default fields which appear in a collection response. In particular I'm filtering and paginating my collection and, beside `_total_items` I would like to have...

- [x] I was not able to find an [open](https://github.com/zendframework/zend-expressive-hal/issues?q=is%3Aopen) or [closed](https://github.com/zendframework/zend-expressive-hal/issues?q=is%3Aclosed) issue matching what I'm seeing. - [x] This is not a question. (Questions should be asked on [slack](https://zendframework.slack.com/)...

I suspect that sometimes it would be nice to have the option to skip the check provided by the `HalResource::compareResources` method. This is because sometimes resources could have optional fields,...