-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest
Description
There's an option to set custom url_field, but no way to do patch, because id is hardcoded
flask-combo-jsonapi/flask_combo_jsonapi/resource.py
Lines 286 to 291 in 23a3ecf
| 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
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomershacktoberfest