【问题标题】:Building a data model based on YAML - how do I visualize my YAML data model?基于 YAML 构建数据模型 - 如何可视化我的 YAML 数据模型?
【发布时间】:2022-11-13 00:36:53
【问题描述】:

我目前正在使用 YAML 进行一些数据建模,开发 documentsenumsfieldsinterfaces

通常,我正在构建具有类似结构的接口:

description: Bulldog # description of interface
extends: Dog # extends another interface
properties: # properties of the interface
    - dogTag:
      field: dog.tag # the field of where the dog tag attribute is defined
    - dogColor:
      field: dog.color
      multi: true # if there are more than one type of color
# links
    - dogPark:
      multi: true # more than one type of dog park
      linkTo: DogParks # Links to Dog Parks

基本上我有一堆这种格式的 YAML——什么是可视化所有这些数据的简单方法?我正在考虑编写一个非常简单的 Javascript 应用程序或其他东西,但在从哪里开始需要一些帮助。抱歉,如果这不是正确的发帖位置。

我玩过 PlantUML,这看起来像是我想要的正确方向,但它只适用于一个 yaml 文件。我有一堆,我想可视化我的整个数据模型。有什么建议么?

谢谢你。

【问题讨论】:

    标签: yaml schema datamodel


    【解决方案1】:

    smart data models 程序中,我们使用swagger 编辑器对其进行了可视化。看到这个example

    确实,我们使用的原始来源是 JSON 模式。它们相当兼容,并且大部分可以相互转化。

    我们的贡献手册是here。 “限制”是我们所做的一切都必须以开源许可证发布,允许免费使用、免费修改和免费共享修改。

    【讨论】:

      猜你喜欢
      • 2017-10-28
      • 1970-01-01
      • 2021-11-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多