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

[Bug] #71

Closed
philousWen opened this issue Mar 17, 2020 · 1 comment
Closed

[Bug] #71

philousWen opened this issue Mar 17, 2020 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@philousWen
Copy link

v0.5.1
复选框,jsonSchame设置了default,formData也有值,resolve构造出来的formData 是default的,并不是formData的
复现方法
jsonSchema: "{"type":"object","title":"","x-config":{"type":"static"},"properties":{"title":{"type":"string","title":"标题","default":999},"description":{"type":"string","title":"描述"},"guideToFliggyClients":{"type":"array","title":"哪些客户端引导至飞猪","items":{"type":"string"},"enum":["ALIPAY","TAOBAO","ALL"],"enumNames":["支付宝","淘宝","所有非飞猪"],"default":[]}},"titleBackup":"静态数据 - 对象类型示例"}"

formData: {"title":"1","description":"2","guideToFliggyClients":["ALIPAY","TAOBAO"]}

调用resove(jsonSchema, formData) 之后得到的是
{"title":"1","description":"2","guideToFliggyClients":[]}

@philousWen philousWen added the bug Something isn't working label Mar 17, 2020
@FateRiddle
Copy link
Contributor

fixed

@FateRiddle FateRiddle mentioned this issue Mar 20, 2020
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants