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
AbstractLinks::transform() sets "prev" and "next" to null when there is only one page in the result set. This does not pass JSON:API schema validation.
For instance, the following response does not pass schema validation:
This is probably a problem with the spec itself that mandates each link be either a string or an object with href and meta, while at the same time stating that a pagination link key could be either omitted or null. Schema validation would pass if keys are omitted instead of being set to null.
The text was updated successfully, but these errors were encountered:
Since I'm not going to backport fixes for the official schema, I've just added an optional constructor parameter for ResponseValidator to be able to provide a custom schema path which potentially has upstream fixes.
AbstractLinks::transform()
sets "prev" and "next" tonull
when there is only one page in the result set. This does not pass JSON:API schema validation.For instance, the following response does not pass schema validation:
This is probably a problem with the spec itself that mandates each link be either a string or an object with
href
andmeta
, while at the same time stating that a pagination link key could be either omitted or null. Schema validation would pass if keys are omitted instead of being set to null.The text was updated successfully, but these errors were encountered: