json-api-php / json-api

Implementation of JSON API in PHP

Home Page:https://json-api-php.github.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add name validation in links

f3ath opened this issue · comments

This is similar to #63. We need to validate link names in setLink() calls.

Have the validation rules been defined? I could help with this.

We may consider a light refactoring to make the validation logic reusable across entities. The easiest way I can see is to move it to a trait.

Fixed in #69