replace for array and object in schema generator