Dry.Types.String (dry v0.1.9)

Represents the string type

Examples:

schema do
  ttribute :field_1, Types.String
  attribute :field_2, Types.String.options(optional: true)
  attribute :field_3, Types.String.options(default: "default text")
end

Link to this section Summary

Functions

Valid options are :default and :optional

Link to this section Functions

Link to this function

options(opts \\ [])

Valid options are :default and :optional