我正在使用导轨上的固定装置,并且我希望其中一个固定装置字段为空白。

例子:

two:
name: test
path: - I want this blank but not to act as a group heading.
test: 4

但我不知道如何离开 path: 空白,不充当组标题。有人知道该怎么做吗?

有帮助吗?

解决方案

YAML 文件基于缩进。一旦你真正有了正确的缩进,它就会以与兄弟姐妹相同的级别读取所有内容。


two:
  name: test
  path: 
  test: 4

其他提示

谷歌 以下应该有效:

path: \"\"
许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top