-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BelongTo relation generates single object for PATCH/POST but it expects an array #12
Comments
ping @maartenpaauw @Rocksheep |
I think the result should be as per spec:
Right not the it seems the data property is:
|
Couldn't fix it unfortunately, got lost in the code. Any change you could have a look? |
I tried to reproduce this bug, but in the implementation, the {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/resources.posts.relationship.comments.fetch"
}
}
} Can you provide more context to the problem? |
Check the related pr it proves the bug :) |
I'm a bit blind this morning, yes for the request bodies this was a real bug. But it should be fixed now, you can try it out with your branch for #13! |
HasMany::make('answers', 'answers')->type('concession-answers'),
results in
but should be
The text was updated successfully, but these errors were encountered: