View Source Spark.OptionsHelpers (spark v2.2.35)

Helpers for working with options lists.

Summary

Functions

Link to this function

append_doc!(options, field, to_append)

View Source
This function is deprecated. use `Spark.Options.Helpers.append_doc!/3`.
This function is deprecated. Use `Spark.Options.docs/1` instead.

Creates markdown documentation for a given schema.

Link to this function

make_optional!(options, field)

View Source
This function is deprecated. use `Spark.Options.Helpers.make_optional!/2`.
Link to this function

make_required!(options, field)

View Source
This function is deprecated. use `Spark.Options.Helpers.make_required!/2`.
Link to this function

merge_schemas(left, right, section \\ nil)

View Source
This function is deprecated. Use `Spark.Options.merge/3` instead.
Link to this function

set_default!(options, field, value)

View Source
This function is deprecated. use `Spark.Options.Helpers.set_default!/3`.
Link to this function

set_type!(options, field, type)

View Source
This function is deprecated. use `Spark.Options.Helpers.set_type!/3`.
This function is deprecated. Use `Spark.Options.validate/2` instead.
This function is deprecated. Use `Spark.Options.validate!/2` instead.