lib/schemacop/schema3.rb in schemacop-3.0.5 vs lib/schemacop/schema3.rb in schemacop-3.0.6

- old
+ new

@@ -12,10 +12,10 @@ # throughout the validation. def validate(data) root.validate(data) end - def as_json(json_format: V3::Context::DEFAULT_JSON_FORMAT) - Schemacop.context.spawn_with(json_format: json_format) { root.as_json } + def as_json + root.as_json end end end