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
Spraypaint models currently only support one error per attribute, so if a response includes multiple errors for a single attribute only the last one will be exposed in the errors object.
Spraypaint maps errors in a JSON:API response to model attributes by looking at the
attribute
metadata.Spraypaint models currently only support one error per attribute, so if a response includes multiple errors for a single attribute only the last one will be exposed in the
errors
object.https://github.com/graphiti-api/spraypaint.js/blob/master/src/util/validation-error-builder.ts#L56
To allow for multiple errors per attribute we could do something like below, however it would be a breaking change:
The text was updated successfully, but these errors were encountered: