For now, only String keys are accepted in the schema file. Because we only fetch using String keys.
Actually the schema example given does not work if you manually write it as a ruby object ( the keys get converted to symbols) But because in the tests file you use JSON parser, it acts different by converting keys to strings instead of symbols.
My suggestion is to unify the hash whatever was the user input.
It is important Because the Hash#fetch method complains about missing keys by throwing exceptions and is String/Symbol sensitive.
For now, only String keys are accepted in the schema file. Because we only fetch using String keys.
Actually the schema example given does not work if you manually write it as a ruby object ( the keys get converted to symbols) But because in the tests file you use JSON parser, it acts different by converting keys to strings instead of symbols.
My suggestion is to unify the hash whatever was the user input.
It is important Because the
Hash#fetch
method complains about missing keys by throwing exceptions and is String/Symbol sensitive.