-
-
Notifications
You must be signed in to change notification settings - Fork 429
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gorillamux.NewRouter fails if any servers url contain variable for port number of the url #367
Comments
Ah yes this is related to #337 and the issue it attempts to solve. |
Thank you for the kind reply. My understanding is almost exactly the same as yours. In my opinion, If this idea is good for you, I can send you a patch. What do you think? |
Now I've hit this problem. @karupanerura I'd be interested in trying out a patch if you have one |
I submitted a patch for this issue but it is failing one of the unit tests. The specific test case is this:
and
Do you have any guidance on how to make this test happy while still resolving #367? |
I've opened #524 that handles this specific issue. @slessard Your PR (at this time) may solve this issue but it uses defaults for all variables not just this one specific case of port vars and so is not backwards compatible. @karupanerura @slessard please give feedback |
Sorry for the delay. I am looking at this now |
e.g.
It throws error at https://github.com/getkin/kin-openapi/blob/v0.63.0/routers/gorillamux/router.go#L41
The text was updated successfully, but these errors were encountered: