基本上是想使用YAML完成以下JSON中的操作:
{
models:
[
{
model: "a"
type: "x"
#bunch of properties...
},
{
model: "b"
type: "y"
#bunch of properties...
}
]
}
到目前为止,这就是我所拥有的,它无法正常工作,因为我重复了我的model
键,但通过保留model
关键字,有什么正确的方法可以做到这一点呢?
models:
model:
type: "x"
#bunch of properties...
model:
type: "y"
#bunch of properties...