AshPaperPlane.SetVersionMetadata (ash_paper_plane v0.1.0)

Copy Markdown View Source

Ash change that writes a version's metadata from the action's shared context.

An application stamps what it wants carried onto source_context.shared, and the change lifts the named keys off shared onto the version. A key absent from the context, or carried with a nil value, is left out.

Options

  • :attribute: the attribute to write, defaulting to :metadata.
  • :keys: the keys to take from source_context.shared.