model: support inlined models
adapter/rest: support returning an instance in #parse