hacky way to return $ref in schemas