jsonapi-utils icon indicating copy to clipboard operation
jsonapi-utils copied to clipboard

Render multiple invalid AR objects

Open tiagopog opened this issue 7 years ago • 0 comments

Currently there's no support to render multiple invalid AR objects like this:

user = User.new
user.valid? #=> false

post = user.posts.new
post.valid? #=> false

jsonapi_utils json: [user, post], status: :unprocessable_entity

tiagopog avatar Jan 17 '18 18:01 tiagopog