http-spec icon indicating copy to clipboard operation
http-spec copied to clipboard

Handle server URL comparison correctly

Open karol-maciaszek opened this issue 4 years ago • 1 comments

Chore summary IHttpOperation merger does not handle all the cases for comparison of server URLs.

Tasks

  • [ ] host should be compared as case-insensitive
  • [ ] path should be compared as case-sensitive
  • [ ] variable names should be compared as case-sensitive (@philsturgeon is that correct assumption?)
  • [ ] the case, when a variable is a part of hostname, should be handled correctly: host can be compared case-insensitive while variable name should be compared case-sensitively

Additional context This task is a followup for a discussion here: https://github.com/stoplightio/http-spec/pull/83#discussion_r389628980

karol-maciaszek avatar Mar 09 '20 13:03 karol-maciaszek