Vonagam
AEAsh Elixir
•Created by Vonagam on 8/19/2023 in #support
Is there a way to define dsl for new type of attribute?
I've implemented ULID type which is one of alternatives to UUID. I can use it without a problem right now by providing
type
and default
to uuid_primary_key
. But wanted to venture into making a small spark extension that adds ulid_primary_key
.
With my naive approach I wrote something like that:
And then wanted to apply it to a resource with extensions: [AshAuthentication]
. But got an error about attributes
section not being patchable. I see that unless a section explicitly allows patching it is not allowed. Is it because of some security/performance considerations? So currently it is impossible to add new attribute shortcuts, right?24 replies