map datatype type form with ash_phoenix.gen.live

attribute :data, :map do public? true end when creating a new element of this resource I had to leave data blank inserting JSON in the browser was not possible would be nice to have and when I put the data into the DB manual, the live view crashes with this error: protocol Phoenix.HTML.Safe not implemented for type Map It might not happen often that you want to present JSON to the user, I ran into it in dev playing around, but just accepting and presenting JSON could be helpful or leave it out to not crash? In ash admin, it is handled nice (just checked after starting to write this)
1 Reply
ZachDaniel
ZachDaniel5mo ago
Yeah, you have to handle it yourself currently We don't have anything for it in the generators

Did you find this page helpful?