Making json schema work with ref