json_schemer icon indicating copy to clipboard operation
json_schemer copied to clipboard

passing a symbol for "format" silently disables validation

Open Roguelazer opened this issue 11 months ago • 1 comments

JSONSchemer.schema({'format' => 'date'}).valid?("foo")
JSONSchemer.schema({'format' => :date}).valid?("foo")

This is very surprising! I feel like fetch_format might want to cast the input to a string. What do you think?

Roguelazer avatar Nov 07 '24 19:11 Roguelazer