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

not support struct's field is interface or json.RawMessage ? #62

Closed
Cloudzp opened this issue Jun 27, 2019 · 1 comment
Closed

not support struct's field is interface or json.RawMessage ? #62

Cloudzp opened this issue Jun 27, 2019 · 1 comment

Comments

@Cloudzp
Copy link

Cloudzp commented Jun 27, 2019

I defined a struct with fields type is interface or json.RawMessage, when i exec command swag init ,i get some error: " Something goes wrong: &ast.InterfaceType{Interface:296, Methods:(*ast.FieldList)(0xc00029bd10), Incomplete:false}"
my struce :

type RespBody struct {
	RequestID string          `json:"request_id"`
	Message   string          `json:"message"`
	Code      int             `json:"code"`
	ErrorCode string          `json:"error_code,omitempty"`
	Data     interface{} `json:"data,omitempty"`
}

this is a bug? can you fix this ? thank you very much!

@Cloudzp Cloudzp closed this as completed Jun 27, 2019
@wuzheng0709
Copy link

how to fix it?

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