Shale is a Ruby object mapper and serializer for JSON, YAML, TOML, CSV and XML. It allows you to parse JSON, YAML, TOML, CSV and XML data and convert it into Ruby data structures, as well as serialize data structures into JSON, YAML, TOML, CSV or XML.
The
type
parameter is expected to be a class that extendsShale::Type::Value
, not an instance. This corrects that.Without this fix, tools that use these type warnings for warnings (in my case RubyMine) complain the type is incorrect when used correctly:
This change corrects the error:
While still giving warnings for passing wrong values: