kyle
kyle
AEAsh Elixir
Created by kyle on 5/25/2023 in #support
Spark.Dsl.Entity is option explicit or inferred?
I'm trying to figure out if there is a way to determine if an option was explicitly set or inferred. As an example, say I want to write a Transformer that marks every attribute as sensitive unless it has been explicitly set as non-sensitive (not quite my usecase but close). I've found where Entity.build receives that info as opts, and I can get and replace the attribute with the Transformer helpers, but I'm not seeing any way to determine if it was explicitly set in the Transformer. Is there a built-in way to determine what has been explicitly set? If not, any ideas for easily grabbing that info?
29 replies