Inconsistent URL Encoding in Generated Services
k9ordon opened this issue · comments
Description
In the services generated by the openapi-ts
library, there appears to be an inconsistency in how URLs are encoded. Some URLs are returned URL encoded while others are not. This inconsistency can lead to issues when these URLs are used in requests.
Example
In the generated code, we have services like:
return __request(OpenAPI, {
method: 'GET',
url: '%2Fats%2Fjobs',
});
This should be:
return __request(OpenAPI, {
method: 'GET',
url: '/ats/jobs',
});
OpenAPI specification (optional)
https://api.kombo.dev/openapi.json
Configuration
npx @hey-api/openapi-ts -i https://api.kombo.dev/openapi.json -o generated
System information (optional)
macos, node v20.11.0, @hey-api/openapi-ts 0.43.0,