View Source Arke.System (Arke v1.1.33)
Link to this section Summary
Link to this section Functions
Macro to create an arke struct with the given parameters.
Usable only via code
and not iex
.
example
Example
arke do
parameter :custom_parameter, :string, required: true, unique: true
parameter :custom_parameter2, :string, required: true, values: ["value1", "value2"]
parameter :custom_parameter3, :integer, required: true, values: [%{label: "option 1", value: 1},%{label: "option 2", value: 2}]
parameter :custom_parameter4, :dict, required: true, default: %{"default_dict_key": "default_dict_value"}
end
return
Return
%Arke.Core.'{arke_struct}'{}
Macro used to define parameter in an arke.
See example above arke/2
Macro used to define parameter in an arke.
See example above arke/2