Skip to content

Commit

Permalink
fix: add missing fields from InvalidField
Browse files Browse the repository at this point in the history
  • Loading branch information
zachdaniel committed Jun 17, 2024
1 parent 745eceb commit c3bbc64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ash_json_api/error/invalid_field.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ defmodule AshJsonApi.Error.InvalidField do
Returned when a field is requested that does not exist or is invalid
"""

use Splode.Error, class: :invalid, fields: [:type, :field, :parameter?]
use Splode.Error,
class: :invalid,
fields: [:type, :field, :parameter?, :detail, :source_parameter]

def message(error) do
error.detail
Expand Down

0 comments on commit c3bbc64

Please sign in to comment.