AshDispatch.Resource.Dsl.ResourceMeta (AshDispatch v0.5.0)

View Source

Data structure for resource_meta configuration in the dispatch section.

Provides metadata about the resource for TypeScript generation: labels, pluralization, navigation paths, and state machine states.

Fields

  • :label - Human-readable singular label (e.g., "Task"). Auto-derived from resource name.
  • :plural - Plural form (e.g., "tasks"). Auto-derived from postgres table name.
  • :nav_path - Navigation base path (e.g., "/tasks"). Auto-derived from plural.

Summary

Types

t()

@type t() :: %AshDispatch.Resource.Dsl.ResourceMeta{
  __spark_metadata__: term(),
  color_theme: String.t() | nil,
  discovery_mode: String.t() | nil,
  feature_key: String.t() | nil,
  icon: String.t() | nil,
  label: String.t() | nil,
  nav_path: String.t() | nil,
  order: number() | nil,
  plural: String.t() | nil
}