Skip to content

[Question] Improved support for jsonschema $ref #975

@BlackGrasshopper

Description

@BlackGrasshopper

🙋 SDK Version

1.0.2

📌 Layout

Free layout or Fixed layout?

💻 Environment

  • Operation System: (e.g. Windows 11 / macOs 14.3)
  • Node.js:
  • Other:

📝 Question Description

越复杂的系统一般会有复杂的类型,往往还有类型的嵌套,1.0.2版本的flowgram.ai对jsonschema $ref 的支持还不太完善。
我现在想把一个系统使用流程图画下来,部分类型包含有相同的类型定义,目前只能一个个在类型里定义重复的object,很不方便。
JsonSchemaTypeManager可以自己注册类型,但是JsonSchemaTypeManager、JsonSchemaUtils等对$ref的处理不足,导致引用困难。
还有希望可自定义注入处理$ref的服务,以便于自定义。
目前想到的就这些了吧

This text is auto-translated:

🙋 SDK Version

1.0.2

📌 Layout

Free layout or Fixed layout?

💻 Environment

  • Operation System: (e.g. Windows 11 / macOs 14.3)
  • Node.js:
    -Other:

📝Question Description

More complex systems generally have complex types, often with nested types. The 1.0.2 version of flowgram.ai's support for jsonschema $ref is not yet complete.
Now I want to draw a system usage flow chart. Some types contain the same type definition. Currently, it is only possible to define repeated objects in types one by one, which is very inconvenient.
JsonSchemaTypeManager can register types by itself, but JsonSchemaTypeManager, JsonSchemaUtils, etc. do not handle $ref well enough, making it difficult to reference.
It is also hoped that the service that handles $ref can be customized to be injected for easy customization.
That’s all I can think of right now.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions