Skip to content

Present error messages #682

Closed
Closed
@dspaeth-faber

Description

@dspaeth-faber

Swagger-UI is able to document errors with responseModels. grape-swagger has implemented this feature too.

Now it would be nice, when I could present my errors with an entity directly, for instace like this:

error!({ code: 'deleted', 
         with: Iron::Entities::Error, 
        message: "Account has ..." 
}, 410)

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