alibaba / formily

📱🚀 🧩 Cross Device & High Performance Normal Form/Dynamic(JSON Schema) Form/Form Builder -- Support React/React Native/Vue 2/Vue 3
https://formilyjs.org/
MIT License
11.12k stars 1.44k forks source link

嵌套同一个循环引用这个要json-schema怎么写? #4179

Closed leslie-fei closed 2 weeks ago

leslie-fei commented 2 weeks ago

Discussed in https://github.com/alibaba/formily/discussions/4178

Originally posted by **leslie-fei** July 9, 2024 比如一个Player类, ``` class Player { username: string; password: string; Parent: Player; } ``` 这个变成json-schema要写成伪代码 ``` { type: 'object', properties: { username: { type: 'string', FormItem, Input }, password: { type: 'string', FormItem, Input }, parent: { type: 'object', properties: { username: { type: 'string', FormItem, Input }, password: { type: 'string', FormItem, Input }, parent: { // 这里会无限循环引用下去, 有没有办法实现类似null语义的解决办法 } } } } } ```
github-actions[bot] commented 2 weeks ago

Hello @leslie-fei, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you! 你好 @leslie-fei,为了能够进行高效沟通,我们对 issue 有一定的格式要求,你的 issue 因为不符合要求而被自动关闭。你可以通过 issue 助手 来创建 issue 以方便我们定位错误。谢谢配合!