rs / rest-layer

REST Layer, Go (golang) REST API framework
http://rest-layer.io
MIT License
1.26k stars 114 forks source link

Fix fields projections on nested sub-resources. Adds validation on fi… #230

Closed Dragomir-Ivanov closed 5 years ago

Dragomir-Ivanov commented 5 years ago

…eld projection for Connected resources.

This PR helps with following scenario:

Dragomir-Ivanov commented 5 years ago

Thanks guys. I think I have added everything I needed to rest-layer, so this may be my last patch for now. I will keep eye on the any issues on GitHub, and will support and try to help as much as I can. Special thanks for @smyrman for his guidance and patience.

Dragomir-Ivanov commented 5 years ago

Guy, hold off with the merge. I thing there is some problem.

Dragomir-Ivanov commented 5 years ago

Okay, I think I fixed the issue with the latest patch.

smyrman commented 5 years ago

@Dragomir-Ivanov, when you are ready, please squash your commits to one and we can do a merge.

I would recommend the final commit message to follow the 50/72 rule, but won't review it in particular. This does however make the commit more readable in many tools, both CLI, web and GUI.

Dragomir-Ivanov commented 5 years ago

Done. Thanks for the link.