Issue with `id` after upgrading from 0.30.1 to 0.31.0
See original GitHub issueI have this issue after upgrading from 0.30.1 to 0.31.0 or 0.31.2 The reads work, but my update is failing.
curl -X PATCH -d '{ "data":{ "type": "email", "id": "100","attributes":{"status": "S"} } }' -H 'Content-Type: application/vnd.api+json' 'localhost:5000/v1/emails/100' | jq .
Is anyone else having this issue? Or maybe there is a change with the new dependency libraries?
{
"errors": [
{
"detail": "Unknown field.",
"source": {
"pointer": "/data/id"
},
"status": "422",
"title": "Validation error"
}
],
"jsonapi": {
"version": "1.0"
}
}
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:7
Top Results From Across the Web
[SOLVED] sbopkg: b0rked by bash upgrade in -current?
Good evening all - I recently upgraded my -current box, and now when I try to run sbopkg I get the ... Upgrading...
Read more >1706064 – Packages left after upgrading to Fedora 30
It's not a bug to have leftover packages after an upgrade. We add things to fedora-obsolete-packages only when the extra packages cause dependency...
Read more >Release Notes — Numba 0.50.1 documentation - PyData |
If a module is imported from a moved location the shim will issue a deprecation warning and suggest how to update the import...
Read more >11. Change log — zhmcclient 1.6.0.dev1 documentation
Fixed issues in the zhmcclient_mock support for the “Update LPAR ... Blanked out value of 'x-api-session' field (Session ID) when logging error responses....
Read more >Release Notes — Documentação Qiskit 0.39.2
Qiskit Metapackage Version qiskit‑terra qiskit‑aer qiskit‑ibmq‑provider Release Date
0.39.2 0.22.2 0.11.1 0.19.2 2022‑11‑03
0.39.1 0.22.1 0.11.1 0.19.2 2022‑11‑02
0.39.0 0.22.0 0.11.0 0.19.2 2022‑10‑13
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@akira-dev I also face the same issue. It can be reproduced by using your example (in /examples/api.py) and performing the patch call:
It seems that the only way to avoid this is to remove the
dump_only=True
on the id field from the computer schema, but in that case, we can update the id with a patch call… which we obviously don’t want. 😉Better fix would be to remove the id using pre_load, which is called before deserializing