Ash.Resource.Transformers.RequireStringLengthCountConfig (ash v3.33.3)

Copy Markdown View Source

Requires config :ash, :default_string_length_count to be set.

Every application must make an explicit choice about how string length is counted. See the backwards compatibility guide for details.

The check only runs for resources that belong to the current OTP application, i.e. the project being compiled, not its dependencies. Resources shipped by libraries are compiled before the host application's installer has run, and the library has no say over the host application's configuration. Those resources are still covered by the runtime check in Ash.Type.String.length_count_config/0.

Summary

Functions

after?(_)

Callback implementation for Spark.Dsl.Transformer.after?/1.

after_compile?()

Callback implementation for Spark.Dsl.Transformer.after_compile?/0.

before?(_)

Callback implementation for Spark.Dsl.Transformer.before?/1.

transform(dsl_state)

Callback implementation for Spark.Dsl.Transformer.transform/1.