Skip to content

Commit a5304e6

Browse files
committed
fix: properly match enum types on input/output
1 parent d72b569 commit a5304e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/ash_json_api/json_schema/json_schema.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ defmodule AshJsonApi.JsonSchema do
452452
resource_attribute_type(Map.merge(attr, %{type: new_type, constraints: new_constraints}))
453453

454454
Spark.implements_behaviour?(type, Ash.Type.Enum) ->
455-
%{"type" => "string", "enum" => type.values()}
455+
%{"type" => "string", "enum" => Enum.map(type.values(), &to_string/1)}
456456

457457
true ->
458458
%{

0 commit comments

Comments
 (0)