错误码易用性问题整改
1、401错误码对应的错误信息在JSDOC中的描述,按照接口实际可能返回的错误类型给出三类原因
Mandatory parameters are left unspecified(必选参数缺失)
Incorrect parameter types(参数类型不正确)
Parameter verification failed(参数规则校验失败)
eg:
Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3.Parameter verification failed
2、@ param 参数描述中补充完善参数描述限制
要求:在接口的参数描述中应将接口的使用场景,使用限制以及注意事项明确告知开发者
1、401错误码对应的错误信息在JSDOC中的描述,按照接口实际可能返回的错误类型给出三类原因
Mandatory parameters are left unspecified(必选参数缺失)
Incorrect parameter types(参数类型不正确)
Parameter verification failed(参数规则校验失败)
eg:
Possible causes: 1. Mandatory parameters are left unspecified. 2. Incorrect parameter types. 3.Parameter verification failed
2、@ param 参数描述中补充完善参数描述限制
要求:在接口的参数描述中应将接口的使用场景,使用限制以及注意事项明确告知开发者
感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 @NEEN @zengyawen @时睿 @Peter_1988 。如果需要调整订阅PR、Issue的变更状态,请访问链接。
Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer @NEEN @zengyawen @时睿 @Peter_1988 for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
登录 后才可以发表评论