lib/dry/schema/dsl.rb
# Return type schema used by the value coercer
#
# @return [Dry::Types::Safe]
#
# @api private
Return type schema used by the value coercer
Return type schema used by the value coercer
def type_schema
        our_schema = type_registry["hash"].schema(types).lax
        schemas = [*parents.map(&:type_schema), our_schema]
        schemas.inject { |result, schema| result.schema(schema.to_a) }
      end
def type_schema our_schema = type_registry [ "hash" ] . schema ( types ) . lax schemas = [ * parents . map ( & :type_schema ) , our_schema ] schemas . inject { | result , schema | result . schema ( schema . to_a ) } end
Return type schema used by the value coercer
Return type schema used by the value coercer
None
Dry::Types::Safe
api
None