grpc-ecosystem/grpc-gateway

Possible regression when specifying duplicate paths

开放

#830 创建于 2018年12月12日

 (7 条评论) (0 个反应) (0 位负责人)Go (2,250 个派生)batch import
bughelp wanted

仓库指标

星标
 (16,971 个星标)
PR 合并指标
 (平均合并 8天 23小时) (30 天内合并 147 个 PR)

描述

I haven't got a lot of time to debug this right now, but at work I've recently run into several instances of the generator not erroring when specifying duplicate paths, like so:

get: "/api/v1/users/{user_id}"
...
get: "/api/v1/users/things"

The second one should not be allowed because it is ambiguous with the first one. I'm pretty sure this used to work, so I assume it's a regression. I'm raising just so I don't forget about it. This is happening on latest master.

贡献者指南