Closed czechboy0 closed 1 year ago
Fixes https://github.com/apple/swift-openapi-generator/issues/251.
Use the already escaped path setter on URLComponents to avoid the second encoding pass.
URLComponents
Path parameters that needed escaping are only escaped once, not twice.
Adapted the existing unit test to cover a path item that needs escaping.
Motivation
Fixes https://github.com/apple/swift-openapi-generator/issues/251.
Modifications
Use the already escaped path setter on
URLComponents
to avoid the second encoding pass.Result
Path parameters that needed escaping are only escaped once, not twice.
Test Plan
Adapted the existing unit test to cover a path item that needs escaping.