Skip to content

Commit

Permalink
fix id param name (grpc-ecosystem#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
askurydzin committed Oct 1, 2018
1 parent 193802d commit 81560ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion protoc-gen-swagger/genswagger/atlas_patch.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ The service-defined string used to identify a page of resources. A null value in
default:
}
// Replace resource_id with id
} else if strings.HasSuffix(param.Name, "id.resource_id") {
} else if strings.HasSuffix(param.Name, "id.resource_id") || strings.HasSuffix(param.Name, ".id") {
param.Name = "id"
fixedParams = append(fixedParams, param)
} else {
Expand Down

0 comments on commit 81560ad

Please sign in to comment.