Closed f3ath closed 7 years ago
Need to validate attribute names in meta objects. The validation should be deep, e.g. in this example an exception should be thrown:
meta
$m = Meta::fromArray([ 'valid_name' => [ 'valid_name_again' => [ '#invalid_name_hidden_deeply' => 'omg' ] ] ]);
Add tests to test/MemberNamesTest.php.
Hi @f3ath please review https://github.com/json-api-php/json-api/pull/67
Need to validate attribute names in
meta
objects. The validation should be deep, e.g. in this example an exception should be thrown:Add tests to test/MemberNamesTest.php.