lib/sinatra/swagger/param_validator.rb in sinatra-swagger-0.2.1 vs lib/sinatra/swagger/param_validator.rb in sinatra-swagger-0.2.2
- old
+ new
@@ -12,10 +12,12 @@
halt(
400,
{
error: 'invalid_params',
developerMessage: 'Some of the given parameters were invalid according to the Swagger spec.',
- invalidities: invalidities
+ details: {
+ invalidities: invalidities
+ }
}.to_json
)
end
end
\ No newline at end of file