Skip to content

passing a symbol for "format" silently disables validation #197

@Roguelazer

Description

@Roguelazer
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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions