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

内嵌结构体没有解析成内部属性,导致生成后swagger解析invalid($UNKNOWN) #68

Open
WisdomZhi opened this issue Feb 9, 2023 · 1 comment

Comments

@WisdomZhi
Copy link

内嵌结构体没有解析成内部属性,导致生成后swagger解析为invalid($UNKNOWN)

go
type PageReq struct {
Page int32 form:"page"
PageSize int32 form:"page_size"
}

type XXXReq struct {
PageReq
BeginDate string form:"begin_date"
EndDate string form:"end_date"
}


![image](https://user-images.githubusercontent.com/38318654/217703550-d2e8a5aa-047f-483d-a2f1-b675e606cd06.png)
![image](https://user-images.githubusercontent.com/38318654/217704451-876e9c08-1428-4b37-aed2-c8bfd36dedc3.png)
@you-eye
Copy link

you-eye commented Oct 12, 2023

我也遇到了这个问题,希望能尽快解决 @kevwan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants