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

[FEAT] fetch增加响应字段校验功能 #87

Open
hugzh opened this issue Sep 29, 2020 · 0 comments
Open

[FEAT] fetch增加响应字段校验功能 #87

hugzh opened this issue Sep 29, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@hugzh
Copy link

hugzh commented Sep 29, 2020

Description

wxa-core:

  1. fetch函数增加response的格式校验能力,允许开发者对接口响应字段的完整性和数据格式进行自定义校验,类似json Schema的模式。

  2. 校验不通过时在不中断运行逻辑的情况下进行warn提示

fetch('api', {}, {$resSchema: { name: { required:true, type: 'string' } }, 'POST' )
@hugzh hugzh changed the title FEAT: fetch增加响应字段校验功能 [FEAT] fetch增加响应字段校验功能 Sep 29, 2020
@Genuifx Genuifx added the enhancement New feature or request label Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants