-
Notifications
You must be signed in to change notification settings - Fork 24
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
Update Operation with Roar JSONAPI representer forces contract to open up id #17
Comments
Hey, @myabc, I think the field |
@KonstantinKo The problem lies in Reform, when it uses the representer to populate the contract. I think we have to fix the configuration in |
Sounds good. |
Could you please open this issue in the |
Sure thing 👍 => trailblazer/roar-jsonapi#25 |
@KonstantinKo cheers. I'll try to find some time later in the week to investigate. |
Since issue was moved to roar-jsonapi i close that one and we will check if it is still to fix. |
I'm not sure whether this is an issue with trailblazer-operation, roar-jsonapi, or reform - but using them in conjunction with an Update call forces me to make the
id
field of a resource editable. That seems like a bad idea to me. I would prefer it to ignore the id part of the JSONAPI request.Admittedly this is also a bit of an inconsistency with the JSONAPI spec. An update as a
PATCH /resources/1
MUST include the id field. An inconsistency between the URL id and the given id in the document is not handled. Maybe there is an edge case where you would want to edit the ID. However whether you want to or not, it has to be provided as a parameter.The text was updated successfully, but these errors were encountered: