`mix doctor` shows errors for "struct spec" on resource modules
Hello. I'm getting errors in
mix doctor
on resource modules, like so...
What should I do to appease mix doctor
for resources? Thanks!2 Replies
One way we've found to clear the error is to add
@type t :: Ash.Resource.record()
to each resource module, but we're wondering if there's a better way...I might suggest
@type t :: %__MODULE__{}
to make it slightly more specific
and then if you want to get really fancy w/ it, you can type each field according to valid values for each attribute/calc/agg type