Improve validation for swift data source URLs

Closes-Bug: #1315448
Change-Id: I2799eed36c6dd7ae782bd2b643323af986e6f141