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

隐藏模型中某字段(必填字段)后,在接口测试中会报错说该字段为必填 #16

Open
lilywang711 opened this issue Jun 29, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@lilywang711
Copy link

Bug 描述
隐藏模型中某字段(下拉框选择的必填字段)后,在接口测试中会报错说该字段为必填。个人认为 NEI 在这里的判断优先级应该是判断是否隐藏 > 判断是否为必/选填
重现步骤

  1. 定义一个模型 UserInfo ,里面有 age sex 字段
  2. 在某个接口中引用此模型,并都设置为必填字段,并隐藏 age 字段
  3. 去到接口测试界面测试刚刚的接口

期望结果
精简的期望描述。

截图
image

image

软件环境

  • 操作系统及版本:
  • Node及版本:
  • 浏览器及版本:

其他信息
其他信息可以填这里。

@lilywang711 lilywang711 added the bug Something isn't working label Jun 29, 2020
@lilywang711
Copy link
Author

lilywang711 commented Jun 29, 2020

“并都设置为必填字段” 这一步是导入模型后自动变成必填的。之所有有这个需求是因为需要隐藏模型中太多字段了,如果一一去选择为可选会很麻烦。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant