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

name解析错误问题 #75

Open
kiritokun07 opened this issue Apr 28, 2023 · 2 comments
Open

name解析错误问题 #75

kiritokun07 opened this issue Apr 28, 2023 · 2 comments
Assignees

Comments

@kiritokun07
Copy link

kiritokun07 commented Apr 28, 2023

goctl-swagger version 20220215 windows/amd64
name应该为type

TypeReq {
    Type int64 `form:"type,default=0" validate:"oneof=0 1 2 3"`
}

执行脚本

goctl api plugin -plugin goctl-swagger="swagger -filename test.json" -api test.api -dir .
"parameters": [
{
  "name": "oneof=0 1 2 3",
  "description": "xxx",
  "in": "query",
  "required": true,
  "type": "integer",
  "format": "int64",
  "default": "0"
}

补充:一个Req里有多个参数,只有这一个参数解析有问题,我单独列出来了

@zjzjzjzj1874
Copy link

zjzjzjzj1874 commented Aug 30, 2023

请把这个问题分配给我一下,谢谢 GitHubUser:zjzjzjzj1874,Link

@jayvynl
Copy link

jayvynl commented Nov 23, 2023

#88 修复了这个问题

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

3 participants