type clashes with json gate and schema type