Introspection helpers for AshLua.Resource.
Summary
Functions
Lua-facing argument name mappings configured for this resource.
Whether the resource should be exposed to Lua. Defaults to true.
Lua-facing field name mappings configured for this resource.
The Lua key (under the domain table) to expose this resource as.
Functions
@spec argument_names(Ash.Resource.t() | Spark.Dsl.t()) :: keyword(keyword(String.t()))
Lua-facing argument name mappings configured for this resource.
@spec expose?(Ash.Resource.t() | Spark.Dsl.t()) :: boolean()
Whether the resource should be exposed to Lua. Defaults to true.
@spec field_names(Ash.Resource.t() | Spark.Dsl.t()) :: keyword(String.t())
Lua-facing field name mappings configured for this resource.
@spec name(Ash.Resource.t() | Spark.Dsl.t()) :: String.t()
The Lua key (under the domain table) to expose this resource as.
Falls back to snake_case of the resource module's last segment.