It is easy for a developer to forget to match up the elements in the elements map with the elements in the models. After loading the config, validate that all the elements match up and that there is no redundancy.
This is an invalid config because a is defined and not used, and b is refered to in the models but not declared.
{
"elements" : {
"a" : "a"
},
"models" : [
{
"element" : "b"
}
]
}
It is easy for a developer to forget to match up the elements in the elements map with the elements in the models. After loading the config, validate that all the elements match up and that there is no redundancy.
This is an invalid config because
a
is defined and not used, andb
is refered to in the models but not declared.