Skip to content

Support proper error objects #63

Closed
@jfhs

Description

@jfhs

Specification proposes layout of errors part of the output. Currently available fields in Internal\Error are: title, detail and status. Specification has more fields, and library should allow user to set them.

Another issue is that it is currently formatter expects only single Error in response, it should also support ErrorCollection. Maybe a special exception JsonApiMultipleErrors, or something like that can be added, so that user can return multiple errors conveniently.

Ideally, there might be some support of validation (I don't know which one, does .Net core/EF has one?) and automatic exceptions if some fields are invalid thrown from Controller/DefaultRepository, with correct pointers to fields.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions