AshJsonApi.Error.MissingTypeOnCreate exception (ash_json_api v1.6.5)

Copy Markdown View Source

Returned when a POST create request has a data object but no type member, and the domain has require_type_on_create? enabled (JSON:API spec compliance).

Summary

Functions

exception(args)

@spec exception(opts :: Keyword.t()) :: %AshJsonApi.Error.MissingTypeOnCreate{
  __exception__: true,
  bread_crumbs: term(),
  class: term(),
  path: term(),
  splode: term(),
  stacktrace: term(),
  vars: term()
}

Create an Elixir.AshJsonApi.Error.MissingTypeOnCreate without raising it.

Keys