Skip to content

Commit cec3fb1

Browse files
committed
fix: relationship resource identifiers don't need to check the id type
1 parent 99711a2 commit cec3fb1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lib/ash_json_api/json_schema/json_schema.ex

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -878,10 +878,9 @@ defmodule AshJsonApi.JsonSchema do
878878
"required" => ["id", "type"],
879879
"additionalProperties" => false,
880880
"properties" => %{
881-
"id" =>
882-
resource_attribute_type(
883-
Ash.Resource.Info.public_attribute(relationship.destination, :id)
884-
),
881+
"id" => %{
882+
"type" => "string"
883+
},
885884
"type" => %{
886885
"const" => AshJsonApi.Resource.Info.type(relationship.destination)
887886
},

0 commit comments

Comments
 (0)