You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Support for dasherized/hyphenized member names #11
Currently, the payload validators expect member names to be underscored only.
When presented with a payload using either hyphens or spaces (although that's not recommended) which are allowed in the spec, the payload validator will fail.
I've added another try on solving this issue in #24. Please have a look and tell me what you think, @richmolj! Would be great to merge this one since I really need this and don't want to fork.
Activity
vovimayhem commentedon Feb 7, 2018
IF we define the keys using strings with hyphens:
Will make the assertions fail with this exception:
So, I think I can do something with
JsonapiSpecHelpers::Payload#keyfor this to work for everybody :) I'll send a PRollizeyen commentedon Sep 6, 2021
I've added another try on solving this issue in #24. Please have a look and tell me what you think, @richmolj! Would be great to merge this one since I really need this and don't want to fork.