Skip to content
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

net/ghttp: router method definition error at Standard Router #4054

Open
oldme-git opened this issue Dec 17, 2024 · 1 comment
Open

net/ghttp: router method definition error at Standard Router #4054

oldme-git opened this issue Dec 17, 2024 · 1 comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. cannot reproduce We cannot reproduce it, it might resolved in new version or you should give more details. need more details

Comments

@oldme-git
Copy link
Member

Go version

go version go1.23.4 windows/amd64

GoFrame version

2.8.2

Can this bug be reproduced with the latest release?

Option Yes

What did you do?

type ListReq struct {
	g.Meta `path:"article/list" method:"all"`
}
:8000   | ALL | /app/article

What did you see happen?

CURL GET OK
CURL POST OK
CURL PUT OK

What did you expect to see?

CURL GET OK
CURL POST NOT FOUND
CURL PUT NOT FOUND

@oldme-git oldme-git added the bug It is confirmed a bug, but don't worry, we'll handle it. label Dec 17, 2024
@gqcn
Copy link
Member

gqcn commented Dec 17, 2024

@oldme-git We have associated unit testing case for method all supported in meta data

func Test_OpenApi_Method_All_Swagger(t *testing.T) {
. Please provide minimum codes that can reproduce this issue.

@gqcn gqcn added cannot reproduce We cannot reproduce it, it might resolved in new version or you should give more details. need more details labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It is confirmed a bug, but don't worry, we'll handle it. cannot reproduce We cannot reproduce it, it might resolved in new version or you should give more details. need more details
Projects
None yet
Development

No branches or pull requests

2 participants