Fixed enum serialization during post request