Use "$ref" to point to models instead of "type"