app/services/schemas/properties/scalar/base.rb
def normalize_schema_value_before_coercer(context)
          if has_default? && context[:raw].nil?
            default
          else
            context[:raw]
          end
        end
# A hook method used to calculate the default if no value is provided, or if
# necessary, perform more complex coercions than dry-schema supports. Chiefly,
# it's used by {Schemas::Properties::Scalar::Reference reference properties}
# to perform model lookups with a variety of supported input types.
#
# @abstract
# @see Schemas::Properties::CompileSchema
A hook method used to calculate the default if no value is provided, or if
necessary, perform more complex coercions than dry-schema supports.
A hook method used to calculate the default if no value is provided or if necessary perform more complex coercions than dry - schema supports .
def normalize_schema_value_before_coercer(context)
          if has_default? && context[:raw].nil?
            default
          else
            context[:raw]
          end
        end
def normalize_schema_value_before_coercer ( context ) if has_default? && context [ :raw ] . nil? default else context [ :raw ] end end
A hook method used to calculate the default if no value is provided, or if
necessary, perform more complex coercions than dry-schema supports.
A hook method used to calculate the default if no value is provided or if necessary perform more complex coercions than dry - schema supports .
context
abstract
None
see
None