Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.

Throw error if two endpoints have the same path and method. #26

Closed
oremj opened this issue Jan 29, 2014 · 0 comments · Fixed by #39
Closed

Throw error if two endpoints have the same path and method. #26

oremj opened this issue Jan 29, 2014 · 0 comments · Fixed by #39

Comments

@oremj
Copy link

oremj commented Jan 29, 2014

When more than one endpoint has the same Path and Method go-endpoints will randomly return one of them. This leads to a hard to debug situation.

It would be nice if an error was returned when the endpoint is ambiguous.

x1ddos added a commit that referenced this issue Oct 8, 2014
API Descriptor generator will now return an error if a service
has either duplicate method names or (HTTP method + path) entries.

Fixes #26
@x1ddos x1ddos closed this as completed in #39 Oct 9, 2014
x1ddos added a commit that referenced this issue Oct 9, 2014
Sanity check for duplicate service methods.

Closes #26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant