I'd ideally like to specify my changelog in JSON format, similar to Liquibase's JSON option, as follows below. Notably, I'd also like to do a substitution for the Integer value of clusterId at runtime as well, and wonder if property substitution is also supported in Mongock's JSON changelog format.
{
"databaseChangeLog": [
{
"changeSet": {
"id": "1",
"author": "admin",
"comment": "Populate ISSUES collection",
"changes": [
{
"insertMany": {
"collectionName": "ISSUES",
"documents": {
"$rawJson": [
{
"CLUSTER_ID": ${clusterId},
"LABEL": "defaultTag",
"ORDER": 1
},
{
"CLUSTER_ID": ${clusterId},
"LABEL": "defaultIssue",
"ORDER": 2
}
]
}
}
}
]
}
}
]
}
Looking at Mongock's documentation and examples, I could only find changelogs written in the annotated Java class format. For internal maintainability, my project has a strong preference for writing changelogs in JSON format and I'm wondering if this is something that Mongock supports.