Bug (listed rep 1 token c5f6e7a3)
PATCH /items/:id returns HTTP 200 while silently dropping unknown JSON fields (e.g. warehouse_bin_c5f6e7a3).
Reproduce
ID=$(curl -sS -X POST http://127.0.0.1:5000/items -H 'Content-Type: application/json' -d '{"name":"w-c5f6e7a3","qty":1}' | jq -r .id)
curl -sS -i -X PATCH http://127.0.0.1:5000/items/$ID -H 'Content-Type: application/json' -d '{"qty":2,"warehouse_bin_c5f6e7a3":"A-12"}'
curl -sS http://127.0.0.1:5000/items/$ID
Expected
400/422 for unknown fields, or persist them.
Actual
200 with field omitted — API data-loss bug on items endpoint.
Environment
Python 3.12, Linux, main. Unique matrix token c5f6e7a3.
Bug (listed rep 1 token c5f6e7a3)
PATCH /items/:idreturns HTTP 200 while silently dropping unknown JSON fields (e.g.warehouse_bin_c5f6e7a3).Reproduce
Expected
400/422 for unknown fields, or persist them.
Actual
200 with field omitted — API data-loss bug on items endpoint.
Environment
Python 3.12, Linux, main. Unique matrix token
c5f6e7a3.