lib/json_schemer/keyword.rb in json_schemer-2.1.0 vs lib/json_schemer/keyword.rb in json_schemer-2.1.1

- old
+ new

@@ -28,9 +28,17 @@ def error_key keyword end + def fetch(key) + parsed.fetch(parsed.is_a?(Array) ? key.to_i : key) + end + + def parsed_schema + parsed.is_a?(Schema) ? parsed : nil + end + private def parse value end