There's an option to set custom url_field, but no way to do patch, because id is hardcoded
|
if "id" not in json_data["data"]: |
|
raise BadRequest('Missing id in "data" node', source={"pointer": "/data/id"}) |
|
if str(json_data["data"]["id"]) != str(kwargs[getattr(self._data_layer, "url_field", "id")]): |
|
raise BadRequest( |
|
"Value of id does not match the resource identifier in url", source={"pointer": "/data/id"} |
|
) |
I know that another pk field is violation of JSON:API spec, but this feature would be neat
There's an option to set custom
url_field, but no way to do patch, becauseidis hardcodedflask-combo-jsonapi/flask_combo_jsonapi/resource.py
Lines 286 to 291 in 23a3ecf
I know that another pk field is violation of JSON:API spec, but this feature would be neat