lib/jimmy/definitions.rb in jimmy-0.3.1 vs lib/jimmy/definitions.rb in jimmy-0.3.2
- old
+ new
@@ -16,9 +16,13 @@
def compile
map { |k, v| [k.to_s, v.compile] }.to_h
end
+ def data
+ schema.data
+ end
+
def [](key)
super || (schema.parent && schema.parent.definitions[key])
end
SchemaCreation.apply_to(self) { |schema, name| self[name] = schema }