Right now, if both name and ref are provided, we just ignore name. This is an invalid schema and should throw an Error