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

fix required struct tag when anonymous nested struct #775

Closed
wants to merge 1 commit into from

Conversation

RedBoneZhang
Copy link

when use anonymous nested structures at @param body,required stuct tag is invalid.
struct define like follow:

type StructA struct {
   Name string `json:"name" required:"true"`
}

type StructB struct {
  StructA 
}

error:
when use StructB in @param,required struct tag is not generated in swagger.json.

when use anonymous nested structures at @param body,required stuct tag is invalid.
struct define like follow:
type StructA struct {
   Name string `json:"name" required:"true"`
}

type StructB struct {
  StructA 
}

error:
when use StructB  in @param,required struct tag is not generated in swagger.json.
@flycash
Copy link
Collaborator

flycash commented Apr 29, 2021

Please fix the CI

@RedBoneZhang
Copy link
Author

del.

Baihhh pushed a commit to Baihhh/bee that referenced this pull request Jul 5, 2023
…anization name (beego#775)

* fix: use openid or unionid as username rather than nickname when logging with WeChat
FIX beego#762

* fix: fix the problem that user owner is not updated when updating organization name

* Update wechat.go

Co-authored-by: Gucheng <[email protected]>
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

Successfully merging this pull request may close these issues.

2 participants