struct JSONAPI::ErrorDocument

Overview

Top-level JSON:API v1.1 error response document.

Defined in:

jsonapi/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(errors : Array(ErrorObject), include_version : Bool = true, links : Links | Nil = nil, meta : Meta | Nil = nil) #

[View source]

Instance Method Detail

def errors : Array(ErrorObject) #

[View source]
def include_version? : Bool #

[View source]
def links : Links | Nil #

[View source]
def meta : Meta | Nil #

[View source]
def to_json(json : JSON::Builder) : Nil #

[View source]
def to_json(io : IO) : Nil #

[View source]
def to_json : String #

[View source]