struct JSONAPI::ErrorObject

Overview

Spec-compliant JSON:API v1.1 error object.

Defined in:

jsonapi/error.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String | Nil = nil, status : String | Int32 | HTTP::Status | Nil = nil, code : String | Nil = nil, title : String | Nil = nil, detail : String | Nil = nil, source : ErrorSource | Nil = nil, links : Links | Nil = nil, meta : Meta | Nil = nil) #

[View source]

Instance Method Detail

def code : String | Nil #

[View source]
def detail : String | Nil #

[View source]
def id : String | Nil #

[View source]
def links : Links | Nil #

[View source]
def meta : Meta | Nil #

[View source]
def source : ErrorSource | Nil #

[View source]
def status : String | Nil #

[View source]
def title : String | Nil #

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

[View source]