how write json schema to show a property based on another property value using json-editor?

折月煮酒 提交于 2019-12-23 03:03:29

问题


I'm using Json-editor for creating a page to edit a json schema.

I would like to set a property to be visible only if another property is set as true, for instance: property has_pets will rule the visibility of a pets array.

I was not able to find anything, only enforcing the validation field.

How can I write a schema definition to does not show a property based on another property value?

来源:https://stackoverflow.com/questions/51884859/how-write-json-schema-to-show-a-property-based-on-another-property-value-using-j

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!