We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
wxa-core:
fetch函数增加response的格式校验能力,允许开发者对接口响应字段的完整性和数据格式进行自定义校验,类似json Schema的模式。
校验不通过时在不中断运行逻辑的情况下进行warn提示
fetch('api', {}, {$resSchema: { name: { required:true, type: 'string' } }, 'POST' )