Open-Federation / json-schema-editor-visual

A json-schema editor of high efficient and easy-to-use, base on React.
https://hellosean1025.github.io/json-schema-visual-editor/
MIT License
997 stars 220 forks source link

anyOf、oneOf可视化支持吗 #90

Open Ucdit opened 1 month ago

Ucdit commented 1 month ago

{ "$schema": "http://json-schema.org/draft-07/schema#", "type": "array", "items": { "anyOf": [ { "type": "object", "properties": { "name": { "type": "string" }, "id": { "type": "integer" } }, "required": [ "name", "id" ], "additionalProperties": false }, { "type": "object", "properties": { "key": { "type": "integer" }, "age": { "type": "integer" } }, "required": [ "key", "age" ], "additionalProperties": false }, { "type": "object", "properties": { "card": { "type": "string" } }, "required": [ "card" ], "additionalProperties": false } ], "type": "string" } }

这样的好像没法可视化