fix the swagger support after default value changes to commands