Resource Key in Form Setup for Nested Union Forms

Here’s what it looks like:

defmodule AshUnionIssueWeb.Resources.OneOfTheUnionTypes do
  use Ash.Resource, data_layer: :embedded

  attributes do
    uuid_primary_key :id
    attribute :prompt, :string, allow_nil?: false, public?: true
    attribute :response, :string, public?: true
  end

  actions do
    default_accept [:prompt, :response]
    defaults [:create, :read, :update]
  end
end

But I did one even better - I reproduced the issue in this repo. You can check it out.