Fixing a bug in swagger api comparison logic