Fixed invalid cases for swagger