Как мне создать список в файле yaml?
У меня ниже файл application.conf.
mappings = [
{
partnerId = "partner1"
stagePolicyMapping = [
{ stage = "Assignment Call",
policy = "underwriting"
},
{ stage = "Collect Docs",
policy = "collectverify"
},
{ stage = "Partial Application",
policy = "partialapp"
}
]
},
{
partnerId = "partner2"
stagePolicyMapping = [
{ stage = "Application Received",
policy = "appreceivedusa"
},
{ stage = "Application Incomplete",
policy = "incompleteapp"
},
{ stage = "Partial Application",
policy = "partialapp"
}
]
}
Я хочу переключиться на файл application.yml. Ниже то, что я имею до сих пор. Я не уверен, как создать список свойств рабочей области и политики.
# policy mappings
mappings:
partnerId:
partner1:
stage: Assignment Call
policy: underwriting
???? stage and policy again ?