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
I'm seeing this error when try to set up a composite id: ValidationError: beforeSerialize is not allowed
Here's my code to register the types. Note that I am not getting an error to serialize the other relationship locationGoals, which doesn't use beforeSerialize():
ValidationError comes from the joi package which was used on version lower than 2.0.0.
As of 2.0.0 it no longer uses joi, so you shouldn't get this error.
I'm seeing this error when try to set up a composite
id
:ValidationError: beforeSerialize is not allowed
Here's my code to register the types. Note that I am not getting an error to serialize the other relationship
locationGoals
, which doesn't usebeforeSerialize()
:I've used
beforeSerialize()
on other occasions without running into this error, so I'm not sure why it's happening here.json-api-serializer version: 2.5.0
The text was updated successfully, but these errors were encountered: