You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently I have to override this endpoint pattern:
var deleteReposIssuesLabelsByOwnerByRepoByIssueNumberByName mock.EndpointPattern = mock.EndpointPattern{
Pattern: "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name:.*}",
Method: "DELETE",
}
The default is to generate it like: "/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
However mux would not match an URL like repos/foo/bar/issues/3/labels/prio/high
The label name contains a slash which is valid in github and that api call also works. However it does not work using the mock as mux does not route it correctly and it ends in mock response not found for /repos/foo/bar/issues/3/labels/prio/high
Happy to provide a fix for the generator if this is considered a bug.
The text was updated successfully, but these errors were encountered:
Currently I have to override this endpoint pattern:
The default is to generate it like:
"/repos/{owner}/{repo}/issues/{issue_number}/labels/{name}"
However mux would not match an URL like
repos/foo/bar/issues/3/labels/prio/high
The label name contains a slash which is valid in github and that api call also works. However it does not work using the mock as mux does not route it correctly and it ends in
mock response not found for /repos/foo/bar/issues/3/labels/prio/high
Happy to provide a fix for the generator if this is considered a bug.
The text was updated successfully, but these errors were encountered: