Automatic model discovery from schema endpoints, make generic classes