lib/esplanade/response/validation.rb in esplanade-1.4.0 vs lib/esplanade/response/validation.rb in esplanade-1.5.0

- old
+ new

@@ -13,10 +13,10 @@ @error ||= if @doc.json_schemas.size == 1 one_json_schema else more_than_one_json_schema end - raise Invalid, message if @error != [] + raise Invalid.new(**message) if @error != [] end private def one_json_schema