grpc-ecosystem/grpc-gateway

Possible regression when specifying duplicate paths

Ouverte

#830 ouverte le 12 déc. 2018

 (7 commentaires) (0 réaction) (0 personne assignée)Go (2 250 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (16 971 étoiles)
Métriques de merge PR
 (Merge moyen 8j 23h) (147 PRs mergées en 30 j)

Description

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.

Guide contributeur