In `LinkCreator.createFor` (line 133) the schema is only generated for the last resource on the path, information from previous resources is ignored.