You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python classes generated by this library have a bug when a special character is encountered in a path parameter. The example in the above issue is a branch parameter with a '/' character.
What did you want to happen?
Path parameters should be url encoded. It can be done with a simple utility function as such:
def format_path_with_params(path, path_params):
escaped_path_params = {
k: requests.utils.quote(v, safe="") for k, v in path_params.items()
}
return path.format(**escaped_path_params)
The text was updated successfully, but these errors were encountered:
What happened?
This was discovered in the palantir-python-sdk library: palantir/palantir-python-sdk#20
Python classes generated by this library have a bug when a special character is encountered in a path parameter. The example in the above issue is a branch parameter with a '/' character.
What did you want to happen?
Path parameters should be url encoded. It can be done with a simple utility function as such:
The text was updated successfully, but these errors were encountered: