-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Description
Using AutoRest 2.0.4245, I noticed that “path” parameters are URL encoded differently in Java than in C# (Swagger below). In Java, “dir/file” is encoded as “dir%2Ffile”. In C#, it is encoded as “dir/file”. I like the way C# encodes paths and would like URL encoding to be consistent across the languages.
{
"swagger": "2.0",
"info": {
"description": "Test URL encoding.",
"title": "Test",
"version": "2018-02-18"
},
"host": "localhost",
"schemes": [
"http",
"https"
],
"paths": {
"/{path}": {
"get": {
"operationId": "GetPath",
"description": "Test Path Parameter.",
"responses": {
"200": {
"description": "Test"
}
}
},
"parameters": [
{
"name": "path",
"in": "path",
"description": "The path to test.",
"required": true,
"type": "string"
}
]
}
}
}
Metadata
Metadata
Assignees
Labels
No labels