FlowRunner. SpecLoader behaviour
(flow_runner v6.15.1)
Copy Markdown
A macro to help loading of JSON floip specs into structs.
Some keys need some extra help when loading, for when that is the
case list those key names under the using key.
Example
defmodule FlowRunner.SomeSpecType do
use FlowRunner.SpecLoaderend defmodule FlowRunner.SomeSpecType do
use FlowRunner.SpecLoader, using: %{"some_field" => FlowRunner.Spec.SomeField}end
Summary
Functions
Validate a struct using Vex.validate