FlowRunner.Spec.Language (flow_runner v6.15.1)

Copy Markdown

Languages are ISO-639-3 codes with some extra metadata

Summary

Functions

Cast the received fields to their internal representation

Load the map or list of maps into Elixir.FlowRunner.Spec.Language structs.

Validate a Elixir.FlowRunner.Spec.Language struct using Vex.validate

Types

t()

@type t() :: %FlowRunner.Spec.Language{
  bcp_47: String.t() | nil,
  id: String.t(),
  iso_639_3: String.t(),
  label: String.t(),
  variant: String.t() | nil
}

Functions

cast!(module, map)

@spec cast!(module(), map()) :: map()

Cast the received fields to their internal representation

load!(blocks_module, list)

@spec load!(module(), map()) :: t()
@spec load!(module(), [map()]) :: [t()]

Load the map or list of maps into Elixir.FlowRunner.Spec.Language structs.

valid?(self)

validate!(blocks_module, impl)

@spec validate!(blocks_module :: module(), t()) :: t()

Validate a Elixir.FlowRunner.Spec.Language struct using Vex.validate