require "mountapi/schema/base" module Mountapi module Schema # Schema implementation for String type class String include Base # cast value to string def cast(value) raise_cast_error(value) unless value.is_a?(::String) value.to_s end end end end