"/v1/public/auth/user/{user.id}": {
"put": {
"summary": "Update user",
"operationId": "AuthService_UpdateUser",
"responses": {
...
},
"parameters": [
{
"name": "user.id",
"in": "path",
"required": true,
"type": "string",
"format": "uint64"
},
...
]
},
"patch": {
"summary": "Update user",
"operationId": "AuthService_UpdateUser2",
"responses": {
...
},
"parameters": [
{
"name": "user.id",
"in": "path",
"required": true,
"type": "string",
"format": "uint64"
},
...
],
}
},
Is your feature request related to a problem? Please describe.
I'm using grpc-gateway patch feature so it generates following openapi spec
As we can see there is
{user.id}parameter in the path, but js client does not replace it with correct variable.According to this lines
Javascript/ApiClient.mustache#L147
Javascript/es6/ApiClient.mustache#L137
it replaces only
{user_id}like paramsDescribe the solution you'd like
Changing regexp to
/\{([\w-\.]+)\}/gwill solve the problemDescribe alternatives you've considered
Additional context