Skip to content

Conversation

@senid231
Copy link
Member

http://jsonapi.org/format/#error-objects

  • source: an object containing references to the source of the error, optionally including any of the following members:
    • pointer: a JSON Pointer [RFC6901] to the associated entity in the request document [e.g. "/data" for a primary data object, or "/data/attributes/title" for a specific attribute].
    • parameter: a string indicating which URI query parameter caused the error.

so source/pointer and source/parameter is a different things, and they should be handled in a different way

also error for pointer /data should be handled as base error for ActiveModel::Errors object

correct handling of source/parameter
@senid231 senid231 force-pushed the correct-handling-generic-validation-error branch from ff6dc71 to 41cb8ca Compare November 10, 2017 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants