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的数据 #14

Open
Wjcccccccccc opened this issue Aug 6, 2024 · 0 comments
Open

无法导入swagger的数据 #14

Wjcccccccccc opened this issue Aug 6, 2024 · 0 comments

Comments

@Wjcccccccccc
Copy link

操作步骤:
1:导出apifox的接口数据为,swagger2.0格式
image
数据如下:
{"openapi":"3.0.1","info":{"title":"hippo","description":"","version":"1.0.0"},"tags":[],"paths":{"/tasks-notifications":{"get":{"summary":"获取通知&待办&个人信息","deprecated":false,"description":"获取当前用户消息数量、待办内容、个人信息","tags":[],"parameters":[{"name":"workNo","in":"query","description":"工号","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"string"},"errorCode":{"type":"string"},"errorLevel":{"type":"string"},"errorMsg":{"type":"string"},"content":{"type":"object","properties":{"tasks":{"type":"object","properties":{"count":{"type":"integer","description":"Number of pending tasks"},"data":{"type":"array","items":{"type":"object","properties":{"creatorWorkNo":{"type":"string","description":"Creator's Work Number"},"creatorName":{"type":"string","description":"Creator's Name"},"creatorAvatar":{"type":"string","description":"Creator's Avatar"},"assigneeWorkNo":{"type":"string","description":"Assignee's Work Number"},"assigneeName":{"type":"string","description":"Assignee's Name"},"assigneeAvatar":{"type":"string","description":"Assignee's Avatar"},"taskCenterCode":{"type":"string","description":"Message Code"},"title":{"type":"string","description":"Message Title"},"sourceCode":{"type":"string","description":"Source System Code"},"sourceName":{"type":"string","description":"Source System Name"},"isAgent":{"type":"string","description":"Is Agent Approval"},"url":{"type":"string","description":"Redirect URL"}},"required":["creatorWorkNo","creatorName","creatorAvatar","assigneeWorkNo","assigneeName","assigneeAvatar","taskCenterCode","title","sourceCode","sourceName","isAgent","url"]}}}},"notifications":{"type":"object","properties":{"count":{"type":"integer","description":"Number of notifications"}}},"personInfo":{"type":"object","properties":{"avatar":{"type":"string","description":"Avatar"},"displayName":{"type":"string","description":"For formal employees: Name (Nickname)\nFor informal employees: Name (Work Number)"},"briefs":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","description":"Title"},"titleEn":{"type":"string","description":"Title in English"},"linkUrl":{"type":"string","description":"Redirect URL, supports internal/external path access and full domain access"}}}}}}}}},"required":["success","errorCode","content"]}}}}},"security":[]}}},"components":{"schemas":{},"securitySchemes":{}},"servers":[]}
2、导入到rap平台
image

3、提交显示成功,但是返回后的页面没有导入的数据
Uploading image.png…

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

1 participant