Closed GreatAuk closed 2 years ago
为了省事都是这样的。
required 可以不生成可选的问号
"AuthLoginRequest": {
"type": "object",
"additionalProperties": false,
"required": [
"mobile",
"password"
],
"properties": {
"mobile": {
"type": "string",
"minLength": 1
},
"password": {
"type": "string",
"minLength": 1
}
}
},
返回结果都是可空的,这是正常情况吗?还是说后端的
swagger
配置有问题