Given a mapping User, with name user as the type in the response, and a url template being /user/{user}/edit... mapping to the id field (that being a class property named id or user_id) will fail.
Yet, it is possible to guess that is the type is user, and user is in the url, the value should be the id's, as we are following a convention.
This should be done as a second pass, after applying the id fields for the URL generation and getting the same result and before disregarding the URL.
Hard title, easy to explain.
Given a mapping
User
, with nameuser
as the type in the response, and a url template being/user/{user}/edit
... mapping to the id field (that being a class property namedid
oruser_id
) will fail.Yet, it is possible to guess that is the type is user, and
user
is in the url, the value should be theid
's, as we are following a convention.This should be done as a second pass, after applying the id fields for the URL generation and getting the same result and before disregarding the URL.