Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make hashes in arrays indifferent to string/symbol keys #105

Merged
merged 1 commit into from Jul 16, 2014

Commits on Jul 16, 2014

  1. Make hashes in arrays indifferent to string/symbol keys

    JSON::Schema.add_indifferent_access was only able to recurse into
    hashes directly contained within another hash; as soon as it found a
    value which was not a hash it stopped. This meant that hashes within
    arrays were not being made indifferent to the key type, and so data
    with symbol keys in a hash in an array were failing validation when
    they should have been valid.
    
    This commit adds a minimal test for this case and fixes voxpupuli#104.
    We think that voxpupuli#104 is a duplicate of voxpupuli#101 and voxpupuli#94 so those issues are
    likely to be fixed by this as well.
    jennyd committed Jul 16, 2014
    Copy the full SHA
    dbc13ba View commit details
    Browse the repository at this point in the history