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

contract 里面,定义一个字段的 type 值,如何可以做到多种类型? #73

Open
rni-l opened this issue Oct 8, 2019 · 2 comments

Comments

@rni-l
Copy link

rni-l commented Oct 8, 2019

baseResponse: { data: { type: ['string', 'array', 'object'], required: true } }

比如 datatype,'string', 'array', 'object' 这三种类型都有可能,这样要怎么配置?

@yanglang1987500
Copy link

同问!

@myNameCao
Copy link

同问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants