You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pk_field_name=getattr(self._data_layer, "url_field", "id")
ifpk_field_namenotinjson_data["data"]:
raiseBadRequest(f'Missing {pk_field_name} in "data" node', source={"pointer": f"/data/{pk_field_name}"})
ifstr(json_data["data"][pk_field_name]) !=str(kwargs[pk_field_name]):
raiseBadRequest(
"Value of id does not match the resource identifier in url", source={"pointer": f"/data/{pk_field_name}"}
)
There's an option to set custom
url_field
, but no way to do patch, becauseid
is 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
The text was updated successfully, but these errors were encountered: